faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 13 people (69%) answered Yes
Recently 6 of 9 people (67%) answered Yes

Entry

can PHP(Linux) access Mysql (WinNT)

Oct 4th, 2000 21:46
Narendra Jain, thomas wong,


PHP can access databases across computers and across O/S.
You have to define the NT Host correctly in your '/etc/hosts' file and 
then use the mysql connectivity with the correct user and password to 
connect to the database.
$db=mysql_connect("nthost","linuxuser");
mysql_select_db("db_on_nt",$db);