Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

[PHP] Re: newbie include question From: Richard Lynch (ceo <email protected>)
Date: 09/21/01

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 <email protected> address is an endangered species -- Use
ceo <email protected>
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 <email protected>>
Newsgroups: php.general
To: <php-general <email protected>>
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 > >

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>