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
Solved

PHP from command line problems

Posted on 2007-12-05
6
301 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
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hbo knew my windows software 4 62
What does this formatting equate to? 7 18
Moving from Mcrypt to OpenSSL 18 45
How to make a good PHP + MySQL + JS pagination system? 3 31
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

839 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