Re: [PHP] header
- From: stuttle@xxxxxxxxx (Stut)
- Date: Mon, 15 Sep 2008 12:32:34 +0100
On 15 Sep 2008, at 12:10, Jason Pruim wrote:
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@xxxxxxxxx> 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.
That's not an HTTP header. I had assumed minimal PHP knowledge on the part of the OP. If he doesn't even know how to output HTML he needs to start with a very very basic beginners tutorial.
-Stut
--
http://stut.net/
.
- References:
- header
- From: "Alain R."
- Re: [PHP] header
- From: Stut
- Re: [PHP] header
- From: "Alain Roger"
- Re: [PHP] header
- From: Jason Pruim
- header
- Prev by Date: Re: [PHP] header
- Next by Date: Re: [PHP] localization folder for web site
- Previous by thread: Re: [PHP] header
- Next by thread: Re: header
- Index(es):
Relevant Pages
|