Re: [PHP-DB] Headers sent error msg on one server but not the other...... .

2005-05-01 Thread David Martínez
Martin Norland wrote: Personally I disagree with this. Yes it's easy, but you should never enable a feature to fix a bug or problem when it can be tracked down (although obviously in time critical situations, using it as a 'band aid' is - sometimes - necessary). With a quick pointer he was abl

Re: [PHP-DB] Headers sent error msg on one server but not the other ...... .

2005-04-29 Thread Martin Norland
David Martínez wrote: I suggest you to activate "Output Buffering" at beggining of your code. It's so easy and should not modify the output of your code. This prevents your error "Headers already sent". At the first line of your PHP code, insert "ob_start()" and in the end of your code insert "ob

Re: [PHP-DB] Headers sent error msg on one server but not the other.....

2005-04-29 Thread David Martínez
I suggest you to activate "Output Buffering" at beggining of your code. It's so easy and should not modify the output of your code. This prevents your error "Headers already sent". At the first line of your PHP code, insert "ob_start()" and in the end of your code insert "ob_clean_flush()". If y

Re: [PHP-DB] Headers sent error msg on one server but not the other.... .

2005-04-28 Thread Craig Hoffman
Thanks guys. There was a space after the closing ?> tag. Best, Craig On Apr 28, 2005, at 2:08 PM, Patel, Aman wrote: Check that there is no output generated before your script hits the Header() function calls. The most common mistake I've noticed is that if you require() or include() many files

Re: [PHP-DB] Headers sent error msg on one server but not the other.... .

2005-04-28 Thread Patel, Aman
Check that there is no output generated before your script hits the Header() function calls. The most common mistake I've noticed is that if you require() or include() many files before you call Header(), and if there is any content outside of the "" tags in the includ()'ed or require()'d files

Re: [PHP-DB] Headers sent error msg on one server but not the other.... .

2005-04-28 Thread Martin Norland
Craig Hoffman wrote: Hey Folks, I have a script that times out the session if there is no activity in a certain amount of time. If there is no activity the HEADER() redirects to the logout page and kills the session. Everything works fine on our test server, but when I test the script on the

[PHP-DB] Headers sent error msg on one server but not the other...

2005-04-28 Thread Craig Hoffman
Hey Folks, I have a script that times out the session if there is no activity in a certain amount of time. If there is no activity the HEADER() redirects to the logout page and kills the session. Everything works fine on our test server, but when I test the script on the production server, I

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Daniel Clark
We've ALL done it before :-) > I am testing now testing it with the ==, silly mistake > > -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Friday, April 30, 2004 4:38 PM > To: Erik Meyer; PHP-DB > Subject: Re: [PHP-DB] headers and if st

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Erik Meyer
I am testing now testing it with the ==, silly mistake -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 4:38 PM To: Erik Meyer; PHP-DB Subject: Re: [PHP-DB] headers and if statements From: "Erik Meyer" <[EMAIL PROTECTED]>

Re: [PHP-DB] headers and if statements

2004-04-30 Thread John W. Holmes
From: "Erik Meyer" <[EMAIL PROTECTED]> > Have you tried: > Uhmm... Have _YOU_ tried that??? = vs == ? ;) ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Daniel Clark
I think that would try to set $login=1. Need two == > Have you tried: > > > -Original Message- > From: Daniel Clark [mailto:[EMAIL PROTECTED] > Sent: Friday, April 30, 2004 4:19 PM > To: matthew perry > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] headers

Re: [PHP-DB] headers and if statements

2004-04-30 Thread John W. Holmes
From: "matthew perry" <[EMAIL PROTECTED]> > > > Why does this direct me to loginError.php even when $logIn = 1? It doesn't. Double check your value of $logIn by printing it out or using print_r/vardump/etc... ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP-DB] headers and if statements

2004-04-30 Thread Erik Meyer
Have you tried: -Original Message- From: Daniel Clark [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 4:19 PM To: matthew perry Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] headers and if statements Hum. Is $logIn null at times?!?! > > > Why does this dir

Re: [PHP-DB] headers and if statements

2004-04-30 Thread Daniel Clark
Hum. Is $logIn null at times?!?! > > > Why does this direct me to loginError.php even when $logIn = 1? > > - Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] headers and if statements

2004-04-30 Thread matthew perry
Why does this direct me to loginError.php even when $logIn = 1? - Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] headers already sent

2004-04-14 Thread Jorge Oliveira
You have some content at line 2 in file trial.php. Check if there is a space (or a session command) at that line. -- Jorge Oliveira » Cloreto.com matthew perry wrote: When I insert the following header: header ("Content-type: application/vnd.ms-excel"); header ("Content-Disposition: a

[PHP-DB] headers already sent

2004-04-14 Thread matthew perry
When I insert the following header: header ("Content-type: application/vnd.ms-excel"); header ("Content-Disposition: attachment" ); I get the messages: *Warning*: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\

[PHP-DB] headers

2001-05-24 Thread Sharmad Naik
How do I eanble headers in php3.ini file -Thanks -- The secret of the universe is @*&í!'ñ^#+ NO CARRIER ___ _ _ _ |_|_||_||_||\/||_|| \ _|| || || \| || ||_/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP-DB] headers

2001-04-07 Thread Corin Rathbone
script you need the GD Image librays installed and enabled. -Original Message- From: Sharmad Naik [mailto:[EMAIL PROTECTED]] Sent: 07 April 2001 08:16 To: [EMAIL PROTECTED] Subject: [PHP-DB] headers When ever i add headers in my pages i get the following errors Can anybody tell me what&#

Re: [PHP-DB] headers

2001-04-07 Thread Johannes Janson
Hi, you can't have ANY output whatsoever before adding a header. Even whitespaces before the opening schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When ever i add headers in my pages i get the following errors > Can anybody tell me what's wrong? > > Warning: Cannot add he

[PHP-DB] headers

2001-04-07 Thread Sharmad Naik
When ever i add headers in my pages i get the following errors Can anybody tell me what's wrong? Warning: Cannot add header information - headers already sent by (output started at /usr/src/apache_1.3.14/web/server/apache/htdocs/searchdisplay.php:4) in /usr /src/apache_1.3.14/web/server/apache/