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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to