Title, why my php script can be executed in the browser, executed with php command, but the error said that the driver could not be found? I use PDO in my script to connect to SQL Server, but my PDO these are loaded, but also enable, in the browser to execute completely no problem, the result of using PHP xxxx.php command to batch this PHP script error can not find the driver?
Reply to discussion (solution)
Web and command-line run PHP is using a different type of php.ini
If you are a single PHP file, the error indicates a grammatical problem.
If there is a path issue that introduces other PHP files.
Web and command-line run PHP is using a different type of php.ini
Reply, thanks to your guidance, solved the problem with the-c parameter
If you are a single PHP file, the error indicates a grammatical problem.
If there is a path issue that introduces other PHP files.
That's the question on the first floor, actually.