Hi guys,
sorry, I know there's a sticky about this, I've read it and tried everything it says, I've googled, I've installed new versions of php and mysql...
... but i still can't get them to work together!!
I have a page has a small amount of php in it with some mysql functions, every time i try and look at it, I get a php error:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\homepage\index.php on line 4
I'm pretty sure its not an issue with the code on the page, but just in case:
<?php
session_start();
$connect = mysql_connect("localhost","********","*******");
mysql_select_db("tim");
?>
I've copied all the files from place to place, here is a listing of my php directory:
Directory of C:\php
04/10/2006 20:09 <DIR> .
04/10/2006 20:09 <DIR> ..
04/10/2006 19:33 <DIR> dev
04/10/2006 19:36 <DIR> ext
04/10/2006 19:40 <DIR> extras
23/08/2006 17:14 417,792 fdftk.dll
04/10/2006 20:09 0 file.txt
23/08/2006 17:14 90,112 fribidi.dll
23/08/2006 17:14 346,624 gds32.dll
23/08/2006 17:14 90 go-pear.bat
23/08/2006 17:14 90,751 install.txt
23/08/2006 17:14 1,089,536 libeay32.dll
23/08/2006 17:14 166,912 libmcrypt.dll
23/08/2006 17:14 165,643 libmhash.dll
26/08/2006 01:14 1,519,616 libmysql.dll
23/08/2006 17:14 385,024 libswish-e.dll
23/08/2006 17:14 3,286 license.txt
23/08/2006 17:14 57,344 msql.dll
23/08/2006 17:14 92,181 news.txt
23/08/2006 17:14 278,800 ntwdblib.dll
04/10/2006 19:45 <DIR> PEAR
23/08/2006 17:14 36,921 php-cgi.exe
23/08/2006 17:14 28,729 php-win.exe
23/08/2006 17:14 28,725 php.exe
23/08/2006 17:14 2,523 php.gif
23/08/2006 17:14 47,367 php.ini
23/08/2006 17:14 43,229 php.ini-dist
23/08/2006 17:14 36,924 php5apache.dll
23/08/2006 17:14 36,925 php5apache2.dll
23/08/2006 17:14 53,314 php5apache_hooks.dll
23/08/2006 17:14 642,200 php5embed.lib
23/08/2006 17:14 28,731 php5isapi.dll
23/08/2006 17:14 28,731 php5nsapi.dll
23/08/2006 17:14 4,571,192 php5ts.dll
23/08/2006 17:14 49,211 php_mysql.dll
23/08/2006 17:14 135 pws-php5cgi.reg
23/08/2006 17:14 139 pws-php5isapi.reg
23/08/2006 17:14 1,616 snapshot.txt
23/08/2006 17:14 200,704 ssleay32.dll
23/08/2006 17:14 360,448 yaz.dll
Is there anything else i've missed?
cheers,
Tim.