PDA

View Full Version : using header function in php



rororo
September 10th, 2008, 10:07 AM
hey, another question!
i'm including a redirect script (in php) for all of my pages - i have three different domain names... two of them are aliases to the third.
so i placed the script in the header and it works on all of the pages except for... guess who? you got it - the index page! i get the error that the page has already sent out header information, but of course, it hasn't - it's on the first line of the page.... and it works on all other pages with the same exact include file...
any ideas? can this be because of the alias or something?

Templarian
September 10th, 2008, 10:25 AM
This is probably related to your other post about not using utf-8 encoding.


[there is probably binary here]<?php

Delete the file and recreate it if it doesn't work post.

rororo
September 10th, 2008, 10:40 AM
nope... didn't help...
i remind you that its the same header that is included into every file of the site so i know that the header is working correctly.
i even created jsut a simple page that only holds the include (which is the entire header) and i get the error.

rororo
September 10th, 2008, 10:50 AM
on second check.... there is a problem with the header on all pages... which is strange, because earlier, i'm sure that there wasn't a problem....
eeek

rororo
September 10th, 2008, 11:00 AM
ok, i think last post -
that was the problem... really strange... i converted the files to ansii and it worked....
but the next problem is how to get the hebrew on the pages to be encoded... i think that i can figure that out.
thanks again!