Re: Problem with Redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Ashish Rizal escribió:

> Hi friends, I am having problem with following code.
> I have actually made the whole code on same page (login.php) and
> the functions that i used in
> this code are in functions.php. Now this time it is showing the
> warning :
> Warning: Cannot modify header information - headers already sent
> by (output started at C:\Program
> ...
> $accesslevel = accessLevel($UserName);
> ?>
> <?php
> if ($accesslevel == "admin"){
> ...
> ANy help would be highly appreicated. Thanks

There is a "\n" between the "?>" and the "<?php" that is causing the
warning. You cannot send any output before all the headers. You don't
need that "?>" followed by "<?php" because this makes no sense so
delete it.

Greetings from Spain!

-- 
David Blanco - Programación y sistemas
Publicinet (Publicidad-Cine-Internet, S.L.)
Urzaiz, 71, entlo, izda. -- 36204 Vigo
Telf 902.014.606 -- http://www.publicinet.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux