RE: [PHP] portabily including files

From: Date: Tue, 14 Jan 2003 19:57:38 +0000
Subject: RE: [PHP] portabily including files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131606@lists.php.net to get a copy of this message
Tyler BIRD <mailto:BIRDTY@uvsc.edu> scribbled; > I'm trying to include > 'http://www.myserver.com/conted/me.inc'; > portably on several mirrored servers like include > '/conted/me.inc' > , I was wondering if there was someway I could include > files and have the implicity connect > and down the load me.inc from the local server whatever server it > happens to be on. > [snip] > > for example > on web2 box > include 'conted/me.inc'; works fine > This example should work on both, as it is a relative path. Unless you mean you want all the mirrored servers to read off your ONE URL, then you can include that whole URL (but I think that would defeat the purpose of mirroring if they all read off main site)

« previous php.general (#131606) next »