I've just installed apache 2.2.15, mysql 5.1.45 and php5.3.2
everything was ok, so I started creating web pages.
I've also configured correctly php with mysql,
through the famous procedure:
removing the comment ; of extension_dir line in php.ini
copying mysql and apache php libraries into my system32 folder.
setting system variables in the PATH.
now when I try to connect to mysql with a script it shows this damned error that I googled and googles a million times:
fatal error: call to undefined function mysql_connect.
my script is:
//connecting to MySQL
$db = mysql_connect('localhost', 'xxxx', 'xxxxx') or
die ('Unable to connect. Check your connection parameters.');
the only one solution I guess I've founded was one by a php developer in php.net official site.
he says that in windows 7, vista and windows server 2008
there's a problem regarding the ip in the hosts file located in C:/windows/system32/etc
and he says to set it like this:
127.0.0.1 localhost
my defaul was this:
127.0.0.1 localhost
::1 localhost
so trying and re-trying I noticed that the only one change when removing the comment (#) from (# ::1 localhost), is that firefox says "Unable to connect to the server" instead of the error reported above.
I'm desperate.