Forum Moderators: coopster

Message Too Old, No Replies

PHP.ini configuration

Unable to load dynamic library

         

eatspinach

12:52 pm on Mar 8, 2010 (gmt 0)

10+ Year Member



Hello,

I have been trying to do a HTTP request for about 2 days now and am completely stuck. The error I am getting on the web page is, 'Fatal error: Class 'HttpRequest' not found in C:\Inetpub\wwwroot\sms\test.php on line 35'

while the log file is reading..

[08-Mar-2010 12:46:42] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_http.dll' - The specified procedure could not be found.
in Unknown on line 0

If i go to the directory on 'C:\php\ext\php_http.dll' the file is there!

any suggestions?

Matthew1980

1:26 pm on Mar 8, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi there eatspinach,

Pardon my ignorance, but what sort of install are you running ie: is this a localhost issue OR a server issue. If its local are you using something like WAMP/LAMP/XAMP or are you doing a seperate install from a CD/Download ie seperate istallers for each component (php/apache/mysql)?

Because from the path, it looks like you are doing it from CD/Direct download... Which if not configure correctly could give you errors...

Cheers,

MRb

eatspinach

1:46 pm on Mar 8, 2010 (gmt 0)

10+ Year Member



Matt,

this is a server issue, i am running windows server 2003 with iis.

i could post the php.ini file?

eatspinach

3:06 pm on Mar 8, 2010 (gmt 0)

10+ Year Member



does anyone know where i could download a correct version of php_http.dll there is a few different ones on the net and some are different sizes?

eatspinach

4:15 pm on Mar 8, 2010 (gmt 0)

10+ Year Member



perhaps this might help, the php error log is reading the following,

[08-Mar-2010 16:12:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_bz2.dll' - The specified procedure could not be found.
in Unknown on line 0
[08-Mar-2010 16:12:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - The operating system cannot run %1.
in Unknown on line 0
[08-Mar-2010 16:12:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mhash.dll' - The specified procedure could not be found.
in Unknown on line 0
[08-Mar-2010 16:12:58] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_http.dll' - %1 is not a valid Win32 application.
in Unknown on line 0

jatar_k

5:05 pm on Mar 8, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



are you sure that path is right?

eatspinach

5:10 pm on Mar 8, 2010 (gmt 0)

10+ Year Member



yes when i log onto the server and i run, 'C:\php\ext\php_http.dll' i get the file popping up.

could it be because the php.ini file is located in c:\windows directory and the extensions file is located C:\php\ext\

?

jatar_k

5:20 pm on Mar 8, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it should only matter that it has the path correct, do you have more than one php.ini?

are the permissions right? i know this is a windows question so it shouldn't matter per se.

eatspinach

9:56 am on Mar 9, 2010 (gmt 0)

10+ Year Member



I replaced the php_http dll with a different version and i am now getting this error.

[09-Mar-2010 09:51:53] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_http.dll' - The specified procedure could not be found.
in Unknown on line 0

jatar_k

2:07 pm on Mar 9, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it sounds like it can't see them, even if the path is correct, I really don't know what to suggest

strip it all out and start over?

sorry not much help

eatspinach

9:28 am on Mar 15, 2010 (gmt 0)

10+ Year Member



This problem is all fixed now!
I did a fresh install by unzipping the PHP 5.2.13 zip package (Windows Binary) into the root of the C Drive. The 3 most important things that i kept missing here were,

1.)not to install from the .exe (i have a feeling that installing from the exe is not suitable for configuring extensions) and the previous install was from an exe hence the problem.

2.)To download the zip folder from the server itself, i kept downloading the file from my local machine and then using ftp to transfer the folder onto the server, (this was wrong) as the server had some security settings configured to automatically block all the files in the folder so everything looked fine but in the properties of the file they were blocked. To resolve this i simply opened up a web browser on the server and downloaded the folder and installed it.

3) configuring IIS - just to mention to anyone who is looking for instructions on this i would recommend always following the instructions found in the install.txt of the PHP folder, i stupidly followed instructions on the net that were just too vague, the install.txt tells you everything.

Once again, thanks for all the help and I hope this tread helps someone else.