Patrick Price wrote:
I am trying to access a mysql database server from a php 5.2 server that
doesn't have mysql installed on it. I don't have access or the ability to
reinstall php on this server. Is it possible to install mysql after php is
installed and up and running?
php just needs the php-mysql connector. When that's provided doesn't
matter (just remember to restart the webserver).
The best solution I could think of would be to require a php file that is
running on a server that I have control of and that has mysql installed and
using that file to call the database to get the information I need.
Connect to mysql remotely. The db does not have to be on the same
machine at all.
mysql_connect lets you put in a server name - it can be an ip address
(recommended) or a hostname (not so recommended - if dns plays up, you
mysql_connect('192.168.0.50', 'user', 'pass');
Postgresql & php tutorials
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php