Closed Thread Icon

Topic awaiting preservation: Help with PHP Error: Fatal error: Call to undefined function mysql_connect() (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24599" title="Pages that link to Topic awaiting preservation: Help with PHP Error: Fatal error: Call to undefined function mysql_connect() (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Help with PHP Error: Fatal error: Call to undefined function mysql_connect() <span class="small">(Page 1 of 1)</span>\

 
Fikzy
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 01-06-2005 08:50

Hellos,

Happy new year to you all. I despiratelly need help on understanding what the error

quote:
Fatal error: Call to undefined function mysql_connect()

means and how I can fix it. i am developing with; php5.1.2, mysql 4.1.8, IIS 5.1 all running on Windows XP. thanks

-Fikayo

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-06-2005 10:13

it likely means you have eihter
a) not loaded the mysql extension for php
b) not compiled php with mysql support.

Since a) is more likely, and easier to fix: Find your php ini, find the extension line with mysql, uncomment, restart IIS.

So long,

->Tyberius Prime

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-06-2005 11:14

PHP? on IIS? SACRELIDGE!!

Woe betide those who use the evil server that is IIS, let alone defile poor defenseless PHP with it.


Justice 4 Pat Richard

Fikzy
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 01-06-2005 11:38

Hello Tyberius,
I followed your instruction;

quote:
Find your php ini, find the extension line with mysql, uncomment, restart IIS.


and when i tried my page, igot the following error;

quote:
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found. in Unknown on line 0

kindly assist.

Fikayo

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 01-06-2005 11:50

option a) You don't have php_mysql.dll. Get a different php distribution.
option b) Your extension path (search for extension in php.ini. You should find it) is off. Either fix it, or copy php_mysql.dll to your windows directory (shudder).

so long,

->Tyberius Prime

Fikzy
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 01-06-2005 11:58

I searched my computer, and i could not find any php_mysql.dll file arround. could you please tell me why? and how i cna get a distribution with php_mysql.dll in it.

Thanks!

Fikayo

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-06-2005 12:05

Installing Php + MySql by hand seems tricky on Windows, try XAMP for Windows to get a safe and stable development enviroment to double test your script. If it works there, which is quite likely, you can trash your previous installation

Fikzy
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2004

posted posted 01-07-2005 14:11

Halo,
Woush! where has XAMPP been all the while I've being trying to get stable around PHP and MySql? XAMPP is realy great-a-tool. I guess I dont have to worry about how to go about Installing Php + MySql by hand anymore...
Thanks to you guys (poi, Tyberius Prime )..est

-till later,

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-07-2005 14:53

You're welcome.
Actually I've never installed XAMP but EasyPhp. That way there's a little "E" next to the clock in the system tray, and when you click on it you can acces the configuration file of Apache, run an administration page, restart/stop the servers, ...

dcathey5
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Feb 2005

posted posted 02-03-2005 08:17

change extension_dir = "./" in the php.ini to extension_dir = c:\php\ext or the directory the dll are in.

« BackwardsOnwards »

Show Forum Drop Down Menu