Page 1 of 1
Accessing web based mysql database with php on local pc
Posted: Thu Jul 14, 2005 11:07 am
by tonyeveland
Is it possible to use php on a local pc to access a mysql database hosted on a web site without installing anything on the local pc?
Posted: Thu Jul 14, 2005 11:13 am
by Burrito
yes, you need to have an account created however on your mysql machine that will allow access from the ip of your home machine.
you will need to have php installed on your home machine
I know that was obvious, but you asked if you needed *anything*
Posted: Thu Jul 14, 2005 2:10 pm
by tonyeveland
Can anyone give me the PHP code that reaches out to my web server?
Posted: Thu Jul 14, 2005 2:13 pm
by Burrito
Code: Select all
mysql_connect("%webserverip%","username","password")
or die(mysql_error());
as I said above though, you will need to have an account that will allow your "local" ip.
edit:

Thanks, Burrito Master
Posted: Thu Jul 14, 2005 3:18 pm
by tonyeveland
Again
Re: Thanks, Burrito Master
Posted: Thu Jul 14, 2005 3:42 pm
by Burrito
tonyeveland wrote:Again
huh?

huh?
Posted: Mon Jul 18, 2005 3:40 pm
by tonyeveland
My subject was Thanks Burrito Master
And my message was Again
You can't send a subject only
Thanks again
Re: huh?
Posted: Mon Jul 18, 2005 3:51 pm
by Burrito
tonyeveland wrote:My subject was Thanks Burrito Master
np amigo