Jump to content

PHP command line with no server


Recommended Posts

Hey everyone. I'm having some issues with an installation of php5 running on windows xp. I installed it without setting up a server because i want to use it with the command prompt. The problem I'm having is that it won't load any extensions. I typed php -i and verified that it was loading C:\PHP\php.ini and it is looking for the extensions in the correct folder (C:\PHP\ext) but it keeps saying that "Specified Module Cannot Be Found". I've tried everything i know to do,, i've added "C:\PHP\ext" to the %Path% windows global variable, I've tried to manually register the dlls with regsvr32 (<-that just gave me the same 'Specified Module Cannot Be Found' error). I've posted this up on other forums, had other php experts look at it, and no one can seem to figure out why this isn't working. If someone here can help I would be very greatful!

Link to comment
Share on other sites

What happens you go to C:/php in the command prompt? to move the command prompt from the default C:/Documents and Settinsg/<username>/ directory when you start command promt type in the following command: cd C:/php/ and then press enter.

 

The command prompt should now read C:/php> _

 

Now try running php through command prompt.

Link to comment
Share on other sites

right,, thats what i'm doing. when the current working directory is c:\PHP i type php -i and it gives me a list of dlls that it could not load

 

C:\PHP>php

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_curl.d

ll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_exif.d

ll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_fdf.dl

l' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_ifx.dl

l' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_interb

ase.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_ldap.d

ll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mcrypt

.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mhash.

dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_msql.d

ll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mssql.

dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.

dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysqli

.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_oci8.d

ll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_openss

l.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_fi

rebird.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_ms

sql.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_my

sql.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_oc

i.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_oc

i8.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pspell

.dll' - The specified module could not be found.

in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_sybase

_ct.dll' - The specified module could not be found.

in Unknown on line 0

Cannot find module (IP-MIB): At line 0 in (none)

Cannot find module (IF-MIB): At line 0 in (none)

Cannot find module (TCP-MIB): At line 0 in (none)

Cannot find module (UDP-MIB): At line 0 in (none)

Cannot find module (SNMPv2-MIB): At line 0 in (none)

Cannot find module (SNMPv2-SMI): At line 0 in (none)

Cannot find module (UCD-SNMP-MIB): At line 0 in (none)

Cannot find module (UCD-DEMO-MIB): At line 0 in (none)

Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)

Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)

Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)

Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)

Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)

Cannot find module (SNMP-MPD-MIB): At line 0 in (none)

Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)

Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)

Cannot find module (SNMPv2-TM): At line 0 in (none)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.