Recommended: "PHP Video Tutorial"
Development environment:
windows7 , mysql, php5.6, nginx
Problems encountered:
I decompressed php into the D drive program files and used php-cgi.exe -b 127.0.0.1:9000 -c d:/Program Files/php/php.ini Run php. At the same time, use nginx to publish the php website.
The website can run when there is no connection to the database. But when the database needs to be created, the website reports an error: dbdriver-》mysqli not found. Then I searched for various solutions on the Internet (mostly changing mysqli to mysql), but all failed.
Solution:
Finally I found that I made a low-level mistake. The path to php cannot contain spaces. Then cut php to the root directory of drive D and run Command: php-cgi.exe -b 127.0.0.1:9000 -c d:/php/php.ini, put php up and the problem is solved.
The above is the detailed content of I'm new to PHP, have you ever encountered this low-level problem?. For more information, please follow other related articles on the PHP Chinese website!