Re: diffrance : require(); a file from localhost and from a domain.

From: Date: Thu, 27 Jun 2002 13:04:30 +0000
Subject: Re: diffrance : require(); a file from localhost and from a domain.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104147@lists.php.net to get a copy of this message
If they are the same the difference will be in $HTTP_HOST and (if different) $SERVER_ADDR, but you want be able to find that out in a gif file. Rasmus Lerdorf wrote:
That is the technical difference. Both will make HTTP requests and issue a GET request to fetch the image file. One opens a connection to localhost (normally the loopback at 127.0.0.1) and the other opens a connection to www.domain.com (at whatever ip that resolves to) -Rasmus On Wed, 26 Jun 2002 php@net.co.cr wrote:
I think thats more than obvious Erik.. I asked for the tecnical diffrance. Anybody?
On Wednesday, June 26, 2002, at 03:19 PM, <php@net.co.cr> wrote:
     
tecnically whats the diffrance if I do: require("http://localhost/image.gif"); or require("http://www.domain.com/image.gif"); ?
       
The first one requires the file at "localhost/image.gif", and the
     
second
one requires the file at "www.domain.com/image.gif". Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
     
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#104147) next »