CGI and MySQL socket location
It seems that (on my host at least) a PHP CGI script can't connect to a MySQL server through the default socket ("/tmp/mysql.sock"). [Edit: The same line of code that produces this error, works fine until I use it as CGI.] Is this problem specific to my host, or is there a known solution?
Phpinfo() says that the variable containing that path is MYSQL_SOCKET, but I can't figure out how to change that variable's value. It's a shared host, so editing php.ini or /etc/my.cnf is not an option.
I've tried adding "php_value mysql_socket /path/to/my/own/mysql.sock" to .htaccess, but the error message still mentions "/tmp/mysql.sock" and not my own directory, so that tells me it's not even trying my own.
Phpinfo() says that the variable containing that path is MYSQL_SOCKET, but I can't figure out how to change that variable's value. It's a shared host, so editing php.ini or /etc/my.cnf is not an option.
I've tried adding "php_value mysql_socket /path/to/my/own/mysql.sock" to .htaccess, but the error message still mentions "/tmp/mysql.sock" and not my own directory, so that tells me it's not even trying my own.
