Re: [PHP] Connecting PHP to a remote mysql database

2002-01-08 Thread Miles Thompson


Check tutorials at Thickbook, WebMonkey, DevShed, etc. and the manual.

Asking this question indicates you haven't taken the first critical step 
yourself.

So I searched the php site for
1. "connect", 12 hits, including one explicitly for mysql.
2. "database", 12 hits, none for mysql, but close enough you'd get the idea.
3. "mysql" - The opening page of the MySQL section of the manual, including 
example code of how to connect and a listing of all the mysql functions and 
a brief explanation of each.

Queries to the list are better put in the form  I tried to do this, ... 
received this error or results were unexpected, ... this is the code I am 
using.

Alternately, you're at the installation stage. There is a whole section of 
the manual devoted to that, as well as guides to installation of PHP on the 
'net which contain specific installation instructions. Again, please try first.

Miles Thompson

At 10:36 AM 1/8/2002 +0100, Félix García Renedo wrote:
>Hello,
> How could I configure php to access to a remote mysql database?
>Thanks


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Connecting PHP to a remote mysql database

2002-01-08 Thread Henning Sprang

Félix García Renedo wrote:

> Sorry,
> I have an mistake.
> I want to configure php to connect to a remote mysql database and I want
> the options to configure php.



in configure it makes AFAIK no difference if you will be connecting to a 
 local or remote mysql db.

just use "--with-mysql" or "--with-mysql=/PATH/TO/MYSQL/LIBS"

see also the output of ./configure --help for more information

henning



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Connecting PHP to a remote mysql database

2002-01-08 Thread Henning Sprang

Hy,

Félix García Renedo wrote:

> Hello,
> How could I configure php to access to a remote mysql database?



just use the correct hostname of your remote host in

mysql_pconnect( "HOST", "USER", "PASS");


henning




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]