Glory!

I have two files, directory.php and global.inc.php

In directory.php ... this is the first line :

<?php include("global.inc.php");?>

followed by the HTML tags.. 

<HTML>
<HEAD>

and at Line 54 begins the php code in this page.. 

<?php 
 $admin = is_admin();
 $return = numlinks_array(); // Build array of number of links in each
category
 $numlinks = $return[0];
 $numlinkstree = $return[1];
 $thematrix="1";

________________

Now, in global.inc.php, this is the function in question, the Admin
Login function, which contains lines 533, 534 & 535 .. 

function login($username, $password)
{
        setcookie("Links_Cookie_User", $username, time() + 3600);
        setcookie("Links_Cookie_Pass", $password, time() + 3600);
        header("Location: directory.php");
        exit;
}


On trying to login, I get this error.. 

Warning: Cannot modify header information - headers already sent by
(output started at /home/unbreaka/public_html/mjs/directory.php:4) in
/home/unbreaka/public_html/mjs/global.inc.php on line 533

Warning: Cannot modify header information - headers already sent by
(output started at /home/unbreaka/public_html/mjs/directory.php:4) in
/home/unbreaka/public_html/mjs/global.inc.php on line 534

Warning: Cannot modify header information - headers already sent by
(output started at /home/unbreaka/public_html/mjs/directory.php:4) in
/home/unbreaka/public_html/mjs/global.inc.php on line 535


Upon 'View Source' of this page.. I have all the HTML tags that I have
in directory.php .. which begin after the include function, but make up
the interface of the page. 

Line 4 of Directory.php currently is.. 

<META http-equiv=Keywords content="michael, jackson, mj, michael
jackson, king of pop, king, pop, bad, dangerous, music, r&b, off the
wall, history, thriller, scream,  invincible, gloria brown, rahul s
johari, album, songs, grammy, awards, you rock my world, cry, black or
white, world, earth, pop, mp3, guestbook, mailing list, directory,
guide, countries, sites, websites, list, site" name=Keywords>


I have tried a lot of things.. moved the incude function to the top,
given all HTML statements in echo .. things like that.. nothing has
worked so far. 

Thanks,
PHPSpooky




> -----Original Message-----
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 28, 2003 11:50 AM
> To: PHPSpooky
> Cc: 'Marek Kilimajer'; [EMAIL PROTECTED]
> Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
> 
> First, where is your header call?  And when you do a view source on
the
> page with the error, what do you see before that error is shown?
> 
> -Rasmus


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

Reply via email to