[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

PHP from command line problems

Posted on 2007-12-05
6
Medium Priority
?
306 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
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.

 

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 1500 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

Technology Partners: 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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

649 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