On 2 Dec 2008, at 20:15, ann kok wrote:
<?php
$link=mysql_connect('localhost','usrname','password');
if(!$link) echo "fail";
else echo "success";
mysql_close();
?>

The location of the socket is compiled into the mysql lib. I believe it can be changed from php.ini - check the manual for details. If not then your easiest option is to create a symlink, or alternatively recompile the extension.

-Stut

--
http://stut.net/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to