Solved

PHP from command line problems

Posted on 2007-12-05
6
303 Views
Last Modified: 2008-02-01
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
Comment
Question by:mhouldridge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Expert Comment

by:Rob Siklos
ID: 20412131
try adding c:\php to your system path, and then open a new cmd.exe window and try again
0
 
LVL 9

Expert Comment

by:Rob Siklos
ID: 20412163
what version of PHP are you using?
0
 
LVL 3

Expert Comment

by:yjwong
ID: 20412276
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:mhouldridge
ID: 20413145
Hi,

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

Im not using Apache.
0
 
LVL 9

Expert Comment

by:Rob Siklos
ID: 20413243
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
 
LVL 21

Accepted Solution

by:
nizsmo earned 500 total points
ID: 20415644
php5ts.dll belongs to php5, as suggested by rob263 you may hav a conflict of different versions of php.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question