Discussion: Header Question
Afficher un message
Vieux 26/03/2008, 08h52   #6
The Natural Philosopher
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Header Question

mtek@mtekusa.com wrote:
> On Mar 25, 11:03 pm, "Mario Adolf" <mo...@ultrafx.de> wrote:
>> Martin wrote:
>>> It doesn't have to be the first thing in your script but it does have
>>> to be the first thing that is served out. I have a couple of scripts
>>> where the header is 25-30 lines down in the script; but, it's the
>>> first thing that the script sends out
>>> Check your script. You must have something being served out prior to
>>> your header. Maybe something in an included file that's at the top of
>>> your script?

>> I've also learnt the hard way that even just a blank line preceeding your
>> code stuffs it up.
>> header can be real bitchy.
>>
>> HTH
>>
>> Mario

>
>
> Found it!!!
>
> I have an include file, which is a very small php script which
> initializes some variables. Basically it looks like this:
>
> <?
> init variables
> ?>
>
> It outputs nothing!! Why is this a problem???


Probably because there is a space or line after the closing ?>
>
> So, I guess I need to figure out how to include this file
> properly......any suggestions??


Make sure the ?> is absolutely the last thing in the file and <? is
absolutely the first. Anything outrsode the brackets is echoed to he output

>
> John
>

  Réponse avec citation
 
Page generated in 0,06295 seconds with 9 queries