Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cant seem to figure out odbc for linux

Status
Not open for further replies.

pollux0

IS-IT--Management
Mar 20, 2002
262
US
i cant find any good documentation on how to connect mysql to an apache server using php. ecspecially if mysql is on a seperate box

any advice???
 
pollux0:

You don't connect MySQL to PHP. You connect PHP to MySQL.

PHP's mysql_connect() function takes three parameters: the IP address or resolvable machine name of the server, the userid, and the password.

Assuming that no firewall is going to keep you from connecting, and assuming that you have created a user which has the ability to connect from your web server, then it's fairly straightforward. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top