MySql extention issues with PHP |
Site Admin
|
I'm not sure what you mean. Would you specify what particular problem you faced with?
BTW, there is no mysql.dll extension. Only php_mysql.dll and only for php5. It's built in into php4. |
||||||||||||
_________________ The PHP IDE team |
|
;extension=php_yaz.dll
;extension=php_zip.dll extension=php_mysql.dll extension=php_dbg.dll-4.4.x Okay Let me see how to explain. Above is from the php.ini file in the I have uncommented out the php_mysql.dll in both php.ini in php4 and php5. below is the config.inc.php code the DB form wizard made and while making the form I was able to connect to the MySql database and see the data. $site["path"] = "C:/Program Files/nusphere/phped"; #Change as reqired. /var/www/html/ $site["lang"] = 'en'; #you may need multilingual support. $site["ext"] = '.php'; # extension for your php files $site["dbhost"] = 'xxxxx'; $site["dbport"] = 'xxx'; $site["dbname"] = 'xxx'; $site["dblogin"] = 'xxx'; $site["dbpass"] = 'xxxx'; require_once $site["path"].'/include_lib/db_myutil.inc'; Then I stepped into F7 to run the form to see the data and when it came to the db_myutil.inc file the form died on the function I copied below. The error states to enable mysql extension. My connection is good yet it still says to enable my extension. So I am at a loss here. function ensureConnectionAvailable() { if (isConnectionAvailable()) { return(true); } else { die("Please enable MySQL extension !"); } } Output states: Please enable MySQL extension ! I hope this makes more sense. It is driving me nuts. |
||||||||||||
|
Site Admin
|
yet it still makes very little sense
probably you have php.ini in Windows directory or php.ini pointed by in the registry. Would you just run phpinfo() somewhere in your script and make sure what php.ini is used? Function isConnectionAvailable() is below, it just check if mysql_connect() is available.
From what you posted it's clear that mysql_connect is not available and clearly indicates that php_mysql.dll is not installed, probably due to the reason mentioned above. |
||||||||||||||
_________________ The PHP IDE team |
MySql extention issues with PHP |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by