Link to home
Start Free TrialLog in
Avatar of mhouldridge
mhouldridge

asked on

PHP from command line problems

Experts,

I am attempting to run a php script from the command line using the following switch;

c:\php\>php.exe -q e:\scripts\hello.php

A windows error message is display as follows;

"The application failed to start because php5ts.dll was not found. Re-installing this application may fix this problem"

And within the command prompt the following error is displayed;

Warning, Unable to load dynamic link library <>  c:\php\extensions\php_mysql.dll - the specified module could not be found"

PHP works fine through web on this box, and mysql runs fine.

Please help!
Avatar of Rob Siklos
Rob Siklos
Flag of Canada image

try adding c:\php to your system path, and then open a new cmd.exe window and try again
what version of PHP are you using?
Avatar of yjwong
yjwong

You might have moved your PHP script intepreter (php5ts.dll) to your webserver's PATH. This means that if you have installed Apache, you might have moved the file to the Apache bin directory as part of the installation process.
Avatar of mhouldridge

ASKER

Hi,

C:\php is added in the system path..... The version of PHP is 4.4.7

Im not using Apache.
php5ts.dll is for PHP 5.x.  Is it possible you have multiple versions of PHP installed, and that this is giving you a conflict?
ASKER CERTIFIED SOLUTION
Avatar of Joe Wu
Joe Wu
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial