Hi. When I first tried to put a php page using a mysql command on my server, it said that it didn't recognize the mysql statement. This was odd, because, as I could verify on my php.info page, php had been compiled to work with mysql, and mysql was up and running. I figured out that the mysql.so file was missing somehow, so I grabbed it from a different server and put in in the right folder. After I put a dl('mysql') statement at the top of the php page, I got an error saying it couldn't find libmysqlclient.so.12. I found the rpm to install that file, and ran that, but now I have another problem. I get no errors when loading the mysql library. However, the script simply stops executing as soon as it reaches a statement such as mysql_connect(); It does not print out an error, and it doesn't return anything. My code is below. I've been trying to avoid having to reinstall php, because I do not have root access on the server and I'm simply interacting with the guy who maintains it. Is there anything else I could try?
<?PHP
_ _ _ _echo "We are right here!<br>"; //Prints this
_ _ _ _dl("mysql.so");
_ _ _ _if (extension_loaded('mysql')) echo "yep<br>"; //Prints "yep" (so extension is loaded)
_ _ _ _echo $db = mysql_connect(); //Does not echo anything
_ _ _ _echo "yes!"; //Does not get to this statement
?>
Thank you!