First Download php-5.1.1-installer.exe more than 2 m, click it, okok, and then run it, go to disk D, all the way, click next. Create a directory named php and add the info. php file to the code: htmlbody? Phpinfo ();? /Bodyhtml data in iis
First DownloadPhp-5.1.1-installer.exe
More than 2 m, click it, and click OK. run the command and go to disk D. click next. Create a directory named php and add the info. php file to the code:
Data in iis: http: // localhost/php/info. php
If a long string of PHP Version 5.1.1 is displayed, congratulations. the configuration is complete.
Create php/data/db. mdb, create the table szd_t, and input data,
Create the file default. php; input:
$ Conn = new com ('adodb. connection ');
$ Connstr = 'driver = {Microsoft Access DRIVER (*. mdb)}; DBQ = '. realpath ('data/db. mdb ');
$ Conn-> Open ($ connstr );
$ Rs = new com ('adodb. recordset ');
$ Rs-> Open ('select * from szd_t ', $ conn, 1, 1 );
While (! $ Rs-> eof ){
$ F = $ rs-> Fields (1 );
Echo $ f-> value;
$ Rs-> MoveNext ();
}
?>
Browse, and print the record you just logged in the database. it's successful. hahaha, it's finished.