mysql_connect() fails without error?
I'm trying to get my Centos 4.2 server up, and i've installed apache/php/mysql/phpmyadmin, but when I try to connect to mysql through a script it doesn't work. Not only does it not work, but it gives no error whatsoever. Just kills over. I'm using the following code:<?php
$link = mysql_connect('localhost', 'myuser', 'mypass');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
and it just shows me a blank page when I run the script. It doesn't even make it past the first line, since i've put an echo statement below it and it won't spit anything out (putting one above it does, though).
EDIT: Oh yeah, and the weird thing is, phpmyadmin works great.. so php must be talking to mysql some how, right?