RE: [PHP] Connecting to a remote server
| From: | Roberts, Mark \(Tulsa\) | Date: | Fri, 28 Mar 2003 13:06:07 +0000 |
| Subject: | RE: [PHP] Connecting to a remote server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141434@lists.php.net to get a copy of this message | ||
They are not on the same server...that is the problem.
They used to be on the same server, but I have had to move the application to a physically different
server with a different DNS than the DB Server.
So, on the surface, it would seem that I should just replace 'localhost' with the dns name
of the DB Server i.e. (http://www.xyz.com). However, this did not work. Is there something else that
I should be doing, either in the connect string or in php configuration?
Mark Roberts
Sr. Systems Analyst
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.biz]
Sent: Friday, March 28, 2003 12:24 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Connecting to a remote server
On Friday 28 March 2003 05:00, Roberts, Mark \(Tulsa\) wrote:
> I am needing to move one of my apps to a remote secure server that I have.
> As I have never done this before what are the general things that I must do
> to make this happen.
>
> I changed my connect statement from "localhost" to the name of the server "
> <http://www.remoteservername.com> �âs”þÎ/ð
> 3µe@http://www.remoteservername.com" and
> received an error that I could not connect, try again later.
Are you talking about the database connection? If so, then there is no need
for the 'http://'. And if both the webserver and the DB server
are on the
same machine you can continue to use 'localhost'.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Things are not as simple as they seems at first.
- Edward Thorp
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php