PHPSpooky wrote:
Glory!
Ok what you're saying made sense to me.. unfortunately the problem is not going away.
I checked out my Directory.php file.. there's a bunch of HTML code that
is responsible for the HTML in that page before the PHP begins, and
before global.inc.php is included in the file.
As I started to erase lines of code.. I quickly learnt that in this
Directory.PHP file.. wherever there is Quote .. " ... it gives that line
in the Warning code.. For example.. the 3rd line of my Directory.php is ..
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
And thus I get this..
Warning: Cannot modify header information - headers already sent by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in /home/unbreaka/public_html/mjs/global.inc.php on line 531
If I remove the Meta tag there.. it takes the next line of code which
contains a Quote symbol.. which is quite necessary in our HTML tags..
So now how do I erase this problem.
This is where my php code begins in the directory.php file..
<? include("global.inc.php"); //Change this if global.inc.php is in a different directory
This is something like line 53 in my Directory.php file.. I inserted this include code line at the top of the Directory.php file,
but that didn't make any different at all. It was still taking the first
line with Quotes and putting up the warning based on that line.
Is there a replacement for Header that I can use in my function in my
global.inc.php page.. over here..
function login($username, $password) { setcookie("Links_Cookie_User", $username, time() + 3600); setcookie("Links_Cookie_Pass", $password, time() + 3600); header("Location: directory.php"); exit; }
Which will do the same.. ? Just a thought. And lastly, what qualifies for a White Character?
PHPSpooky
-----Original Message----- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 6:14 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] 'Cannot send Headers' Problem!!
Simly go to mjs/directory.php, line 3, and remove any output that is there, mosty likely some white characters.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php