[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

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!
0
mhouldridge
Asked:
mhouldridge
1 Solution
 
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
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
nizsmoDeveloperCommented:
php5ts.dll belongs to php5, as suggested by rob263 you may hav a conflict of different versions of php.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now