follow us on google+ follow us feedburner

FORUM

php command line



Posted by: Mike
September 16, 2012 03:59AM
I just installed EasyPHP 12.1 and I'm trying to use php via the command line. At first, I was getting "'php' is not recogniced as an internal or external command." This is probably because it's not in the system PATH.

So I added C:\Program Files\EasyPHP-12.1\php\php546x120906230310 (because php.exe resides there). This didn't seem to work because it was then complaining that it was "Unable to load dynamic library ..." multiple times for each of the .dll's in the php folder. Here's an example of one:

Warning: PHP Startup: Unable to load dynamic library 'C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\EasyPHP-12.1\php\php546x120906230310\php\php546x120906230310\ext\php_gd2.dll' - The specified module could not be found.
in Unknown on line 0

Why is it showing my whole PATH here? Did I add the wrong path to the PATH? Does this have to do with the ${path} variable for easyphp?

Any ideas?
Options: ReplyQuote
Posted by: Mike
September 19, 2012 12:07AM
So I got it working, but I had to install a separate version of PHP. I now have a standalone version in C:\PHP and another inside EasyPHP. Not ideal, but it works.

Let me know if you guys find another solution.
Options: ReplyQuote
Posted by: Luuk
September 22, 2012 02:58PM
change these 2 lines in your PHP.INI file (which is probably in this folder:
c:\Program Files (x86)\EasyPHP-12.1\\php\php546x120922121219 )

extension_dir = "c:\Program Files (x86)\EasyPHP-12.1\php\php546x120922121219\ext\"
zend_extension = "c:\Program Files (x86)\EasyPHP-12.1\\php\php546x120922121219\php_xdebug-2.2.1-5.4-vc9.dll"

After doing this i only receive 1 error about 'yaz...',
PHP worked from command-line, when i commented (added a semicolon) this line:
;extension=php_yaz.dll

But EasyPHP stopped working..... ;(

Maybe YAZ (http://www.php.net/manual/en/book.yaz.php) should be installed to solve this 'problem'...



Edited 2 time(s). Last edit at 09/22/2012 03:33PM by Luuk.
Options: ReplyQuote
Posted by: Tomo
October 08, 2012 04:53PM
Hello, all missing dll's to fix the problem can be found here [ftp.zlatkovic.com]

iconv, libxslt, libxml, zlib1...just download the missing dll's by the error messages which easyphp gives you and put them into the php/php546x120922121219 folder, tadaaa!!
Options: ReplyQuote
Posted by: Bruno G.
November 14, 2012 04:31PM
yeah these errors are very annoying..
Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.