For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > October 2004 > Installing Extensions ( php5.02 )









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Installing Extensions ( php5.02 )
Karim Beyrouti

2004-10-17, 8:57 am

Hello !...

I am sure this is a common question: I am trying to install extensions (
MySql support ), for php5 - and cant seem to get them loaded / running.

Here is what I've done so far:

1) ran the installer ( php-5.0.2-installerFull.exe ), ( tested php - which
works )
2) downloaded the php-5.0.2-Win32.zip file with extensions and copied that
over to the php folder...
3) set extension_dir = "C:\Program Files\PHP\ext" in "c:\windows\php.ini"

at this point ( when i restart IIS ), none of the extensions load... so I
though I should enable them by uncommenting

extension=php_mssql.dll
extension=php_msql.dll
extension=php_mysql.dll

when restarting IIS I get error messages for each extension:

PHP Startup: Unable to load dynamic library "c:\program
files\PHP\ext\php_mysql.dll" ... ( and so on for the others )...

The strange thing is that is seems to load the extensions anyway as I can
successfully connect to mysql

$link = mysql_connect("localhost", "user", "pass")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);

.... any ideas whats going on here?
[color=darkred]


Cheers


karim



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com