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!
mhouldridgeAsked:
Who is Participating?
 
nizsmoConnect With a Mentor DeveloperCommented:
php5ts.dll belongs to php5, as suggested by rob263 you may hav a conflict of different versions of php.
0
 
Rob SiklosCommented:
try adding c:\php to your system path, and then open a new cmd.exe window and try again
0
 
Rob SiklosCommented:
what version of PHP are you using?
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
yjwongCommented:
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.
0
 
mhouldridgeAuthor Commented:
Hi,

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

Im not using Apache.
0
 
Rob SiklosCommented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.