I'm new to PHP, have you ever encountered this low-level problem?

藏色散人
Release: 2023-04-09 17:08:01
forward
3243 people have browsed it

I'm new to PHP, have you ever encountered this low-level problem?

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!

Related labels:
php
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!