Reply to Re: PHP page get executed twice

Your name:

Reply:


Posted by Juan Jos Gutirrez de Quevedo Prez on 06/01/06 16:01

El Thu, 1 Jun 2006 16:34:40 +0200
Marcel escribió:

> header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the
> past header("Location:newsitems.php");

just a thing, try to always exit after sending a location header, keep
in mind that only sending it does NOT end the .php file.

also if for example you are redirecting someone because they're not
logged in, the rest of the page WILL be generated, and if you download
it with wget or curl you'll be able to see without validation.

header('Location: your-new-location');
exit;

don't know if it has any connection to your problem, but change it
anyway

--
Juan José Gutiérrez de Quevedo
Director Técnico (juanjo@iteisa.com)
ITEISA (http://www.iteisa.com)
942544036 - 637447953

[Back to original 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

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