You are here: Re: Problem with PHP output « PHP Programming Language « IT news, forums, messages
Re: Problem with PHP output

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация