Re: newbie include question

From: Date: Sat, 22 Sep 2001 02:51:27 +0000
Subject: Re: newbie include question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68262@lists.php.net to get a copy of this message
You really only want to use the whole URL if you plan on having it get it from a remote server... And that's pretty dangerous unless you totally control that remote server. I think you'll need to convince xyz.inc and/or Apache to not output those headers... I *THINK* maybe something like: header("Last-Modified:"); will over-ride the default header, and since it's got no value, might not be passed out... Strictly a guess on my part. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Peter Wilk <pete@petewilk.com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Wednesday, September 19, 2001 11:56 PM Subject: newbie include question > I am very new to PHP and I've come across a little problem. When I'm using > an include (), such as: > > <?php include > "http://www.petewilk.com/temp/xyz.inc"; ?> > > I get the following text in the resulting HTML file. > > "Last-Modified: Thu, 20 Sep 2001 04:46:25 GMT ETag: "6464fa-15-3ba974a1" > Accept-Ranges: bytes Content-Length: 21 Connection: close Content-Type: > text/plain " > > However if I change the include() line to look like this > > <?php include "xyz.inc"; ?> > > I don't get the "Last-Modified ......" text. Anyone know why this is > happening? Is there a way I can use the whole URL rather than the relative > path? > > -Peter Wilk > >

« previous php.general (#68262) next »