Re: header

From: Date: Mon, 15 Sep 2008 11:10:07 +0000
Subject: Re: header
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-280163@lists.php.net to get a copy of this message
On Sep 15, 2008, at 7:05 AM, Alain Roger wrote:
thanks for info On Mon, Sep 15, 2008 at 1:03 PM, Stut <stuttle@gmail.com> wrote:
On 15 Sep 2008, at 11:57, Alain R. wrote:
how in PHP can i create the similar header as following ? <head> <base href="www.mywebsite.com"> </head>
Assuming you mean with the header function, you can't. There is no HTTP header equivalent of the base tag.
It would be possible though if your php page is displaying html or at least spitting out the html to be displayed somewhere to use HEREDOC. Something like this: echo <<<HEAD <head> <base href="www.mywebsite.com"> </head> HEAD; the only gotcha is that HEAD; as to be on it's own line AND at the start of the line to work. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim@raoset.com

« previous php.general (#280163) next »