Header

From: Date: Fri, 24 Aug 2001 06:03:36 +0000
Subject: Header
Groups: php.general 
Request: Send a blank email to php-general+get-64211@lists.php.net to get a copy of this message
I want to open some html page from php in if..else..endif condition but i dont't know how or which command I must use. Please help me if i uses this in IF section : $path = "/route/index.htm"; Header("Location: http://$SERVER_NAME$path"); result in browser is : Warning: Cannot add header information - headers already sent by (output started at e:\programovanie\php\patenty\query.php:8) in e:\server\route\query.php on line 20 and line 20 is : Header("Location: http://$SERVER_NAME$path"); <? Header("Expires: ".GMDate("D, d M Y H:i:s")." GMT"); if (condition) : open other html page else database commands endif; ?> roman

« previous php.general (#64211) next »