|
Posted by Geoff Berrow on 07/23/07 07:13
Message-ID: <6k08a3to0dl466b8opekjodc7aul7oi4cd@4ax.com> from John
contained the following:
>I have an html menu that I renamed menu.php. I then have a download
>program which uses an index.php file. I did the standard <?php
>include("menu.php"); ?> command and I see the menu. However, it messes
>up the php index file. When I go to download a file it just opens the
>file on the screen for some reason rather than showing a popup window
>asking where to put the downloaded file.
Your download program worKs by sending out headers which tell the
browser what to expect. Generating any other output before these
headers are sent will cause PHP to send other headers which you don't
see and then html output. Once this has started you cannot then send
headers again and hence the error message.
In short, you can't include the me
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|