[PHP] Problem with header(Location: )...

2011-07-31 Thread Jason Pruim
So I'm attempting to redirect back to the main site of a page after a successful insert into a database... Here's my code: ?PHP if (!$resp-is_valid) { // What happens when the CAPTCHA was entered incorrectly die (The reCAPTCHA wasn't entered correctly. Go back and try it again. .

RE: [PHP] Problem with header(Location: )...

2011-07-31 Thread Dajka Tamas
Try lowercase 'http'. Anything in error log? Try turning on display_errors. Cheers, Tamas -Original Message- From: Jason Pruim [mailto:li...@pruimphotography.com] Sent: Sunday, July 31, 2011 8:40 PM To: php-general@lists.php.net Subject: [PHP] Problem with header(Location

Re: [PHP] Problem with header(Location: )...

2011-07-31 Thread Jason Pruim
Jason Pruim li...@pruimphotography.com On Jul 31, 2011, at 2:50 PM, Dajka Tamas wrote: Try lowercase 'http'. Anything in error log? Try turning on display_errors. Tried both, upper and lower case http nothing changed... And nothing in the error log... I try a simple echo with a link and

Re: [PHP] Problem with header(Location: )...

2011-07-31 Thread Tamara Temple
On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote: So I'm attempting to redirect back to the main site of a page after a successful insert into a database... Here's my code: ?PHP if (!$resp-is_valid) { // What happens when the CAPTCHA was entered incorrectly die (The reCAPTCHA wasn't

Re: [PHP] Problem with header(Location: )...

2011-07-31 Thread Jason Pruim
On Jul 31, 2011, at 6:23 PM, Tamara Temple wrote: On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote: So I'm attempting to redirect back to the main site of a page after a successful insert into a database... Here's my code: ?PHP if (!$resp-is_valid) { // What happens when the

Re: [PHP] Problem with header();

2009-03-31 Thread Igor Escobar
I don't had the oportunity to test it yet, but today i will. Today i will make two tests: - Save the files without BOM. - If i dont have success i will disable the output buffering. Thanks to everybody for all support. Regards, Igor Escobar systems analyst interface designer www . igorescobar

RE: [PHP] Problem with header();

2009-03-31 Thread Andrea Giammarchi
BOM problems, a prepended file in the Apache configuration which is broken/bugged/crap, or something truly bad in the configuration. Date: Tue, 31 Mar 2009 10:20:24 -0300 From: titiolin...@gmail.com To: phps...@gmail.com CC: php-general@lists.php.net Subject: Re: [PHP] Problem with header

[PHP] Problem with header();

2009-03-30 Thread Igor Escobar
Hi guys, probably everybody goes think: its the same problem ever HTML before header() functions ... but it is not. I has working on a project and this are a running in Windows (shame on me). Recently i migrate to *Ubuntu *and some problems occurred and that specifically i can't understand WHY

Re: [PHP] Problem with header();

2009-03-30 Thread Stuart
2009/3/30 Igor Escobar titiolin...@gmail.com: Hi guys, probably everybody goes think:  its the same problem ever  HTML before header() functions ...  but it is not. I has working on a project and this are a running in Windows (shame on me). Recently i migrate to *Ubuntu *and some problems

Re: [PHP] Problem with header();

2009-03-30 Thread Phpster
Output buffering turned off? Bastien Sent from my iPod On Mar 30, 2009, at 15:03, Igor Escobar titiolin...@gmail.com wrote: Hi guys, probably everybody goes think: its the same problem ever HTML before header() functions ... but it is not. I has working on a project and this are a

Re: [PHP] Problem with header in an if

2005-03-26 Thread Burhan Khalid
Jay Blanchard wrote: [snip] /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i]; } unset($errorsReported);

RE: [PHP] Problem with header in an if

2005-03-25 Thread Jay Blanchard
[snip] /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i]; } unset($errorsReported);

RE: [PHP] Problem with header in an if

2005-03-25 Thread Jay Blanchard
[snip] /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i]; } unset($errorsReported);

RE: [PHP] Problem with header in an if SOLVED

2005-03-25 Thread Jay Blanchard
[snip] /* check for errors */ $arrCheckItems = array( 'Name', 'Dept', 'Level', ); /* check for blanks */ foreach($_POST AS $key=$value){ if(in_array(niceName($key), $arrCheckItems)){ $errorsReported[] = notBlank($key, $value); } } Even if

Re: [PHP] Problem with header in an if SOLVED

2005-03-25 Thread Jochem Maas
Jay Blanchard wrote: [snip] /* check for errors */ $arrCheckItems = array( 'Name', 'Dept', 'Level', ); /* check for blanks */ foreach($_POST AS $key=$value){ if(in_array(niceName($key), $arrCheckItems)){ $errorsReported[] = notBlank($key, $value); } } Even if the return from notBlank is

[PHP] Problem with header in an if

2005-03-24 Thread Jay Blanchard
/* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i]; } } else { /* reload the empty interface */

RE: [PHP] Problem with header in an if

2005-03-24 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, March 24, 2005 12:34 PM said: I don't know if either of these two things will make a difference but here they are anyway. /* send the errors to the interface and exit*/ if('' !== $errorsReported){ Why not

Re: [PHP] Problem with header in an if

2005-03-24 Thread dpgirago
/* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i]; }

RE: [PHP] Problem with header in an if

2005-03-24 Thread Jay Blanchard
[snip] /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i];

RE: [PHP] Problem with header in an if

2005-03-24 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, March 24, 2005 1:00 PM said: I have tried ... 0 count($errorsReported) 0 != 0 !== isset($errorReported) !empty '' != '' !== Have you tried explicitly setting $errorsReported to to see where it goes? $errorsReported = ;

Re: [PHP] Problem with header in an if

2005-03-24 Thread Jochem Maas
Jay Blanchard wrote: /* send the errors to the interface and exit*/ if('' !== $errorsReported){ for($i = 0; $i count($errorsReported); $i++){ echo $errorsReported[$i]; } } else { /* reload the empty interface

Re: [PHP] problem with header-dispotition in IE

2004-09-21 Thread Marek Kilimajer
adwinwijaya wrote: The error that I got just IE cannot download download.php from mysite.com .. IE was not able to open this site and bla bla bla. No hint in the error. I think the problem that I faced is with SSL. I try http://www.wazzup.co.nz/tutorials/protect_pdf/index.php and it didnt work on

[PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header(Content-type: attachment/pdf); header('Content-Type: application/pdf'); //header(Content-Type: application/octet-stream);

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Marek Kilimajer
adwinwijaya wrote: Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header(Content-type: attachment/pdf); header('Content-Type: application/pdf'); //header(Content-Type: application/octet-stream);

Re[2]: [PHP] problem with header-dispotition in IE

2004-09-20 Thread adwinwijaya
Hello Marek, Monday, September 20, 2004, 6:58:46 PM, you wrote: MK adwinwijaya wrote: Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header(Content-type: attachment/pdf); header('Content-Type:

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Brad Pauly
On Mon, 20 Sep 2004 10:58:46 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: I suppose you are trying to force IE to download the pdf file, but it is always displaying it - you did not tell what is your problem. IE determines the type of file from the extension, if it is a known extension

Re: [PHP] problem with Header(Location: home.php);

2004-09-10 Thread Chris Shiflett
--- CBharadwaj [EMAIL PROTECTED] wrote: In conection.php I have written. SESSION_ START(); on successful login I am registering a session variable. SESSION_REGISTER(userId); Do this instead: session_start(); $_SESSION['userid'] = 'myuser'; Header(Location: home.php); Use

[PHP] problem with header(Location:home.php)

2004-09-09 Thread CBharadwaj
Hello, In conection.php I have written. SESSION_ START(); on successful login I am registering a session variable. SESSION_REGISTER(userId); on login failure I am redirecting to home page. Header(Location: home.php); the following error occuring in above line. Warning: Cannot

[PHP] problem with Header(Location: home.php);

2004-09-09 Thread CBharadwaj
Hello, In conection.php I have written. SESSION_ START(); on successful login I am registering a session variable. SESSION_REGISTER(userId); on login failure I am redirecting to home page. Header(Location: home.php); the following error occuring in above line. Warning: Cannot

Re: [PHP] problem with Header(Location: home.php);

2004-09-09 Thread Paul Waring
the following error occuring in above line. Warning: Cannot modify header information - headers already sent by (output started at E:\PHPMySql scripts\bugtrack\connection.php:3) in E:\PHPMySql scripts\bugtrack\index.php on line 117 Have you got any space before you output anything to the

Re: [PHP] problem with Header(Location: home.php);

2004-09-09 Thread Andre Dubuc
On Thursday 12 August 2004 07:48 pm, CBharadwaj wrote: Hello, In conection.php I have written. SESSION_ START(); ^ Get rid of extra space and it should work Hth, Andre on successful login I am registering a session variable. SESSION_REGISTER(userId); on

Re: [PHP] problem with header(Location:home.php)

2004-09-09 Thread Matt M.
the connection file I have included in every page. why this error is occuring? check E:\PHPMySql scripts\bugtrack\connection.php for white space before or after ?php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with header(Location:home.php)

2004-09-09 Thread Pablo M. Rivas
look the line 3 of connection.php Good luck On Wed, 8 Sep 2004 16:43:54 -0700, CBharadwaj [EMAIL PROTECTED] wrote: Hello, In conection.php I have written. SESSION_ START(); on successful login I am registering a session variable. SESSION_REGISTER(userId); on login failure I am

Re: [PHP] problem with header(Location:home.php)

2004-09-09 Thread Alex Hogan
Warning: Cannot modify header information - headers already sent by (output started at E:\PHPMySql scripts\bugtrack\connection.php:3) in E:\PHPMySql scripts\bugtrack\index.php on line 117 the connection file I have included in every page. why this error is occuring? You are getting this

Re[2]: [PHP] Problem with header

2004-03-25 Thread Tom Rogers
Hi, Friday, March 26, 2004, 2:36:18 PM, you wrote: pen On 25 Mar 2004 at 14:10, Tom Rogers wrote: Any whitespace in any file before the ?php will cause data to be sent to the browser forcing the headers to be sent. So make sure the first line of your page has ?php and it is a good idea to

[PHP] Problem with header

2004-03-24 Thread Phil Matt
Hello to all - just joined this list to see if I can enhance my pretty slim knowledge of PHP. I have a little script I cobbled together than I modified to use as a guestbook for a client's site. I am trying to get the script to call a success page if the mail in fact gets sent. I plan to also

Re: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, Thursday, March 25, 2004, 9:17:31 AM, you wrote: PM Hello to all - just joined this list to see if I can enhance PM my pretty slim knowledge of PHP. PM I have a little script I cobbled together than I modified to use as a guestbook for a PM client's site. I am trying to get the script to

Re[2]: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, TR Any whitespace in any file before the ?php will cause data to be sent TR to the browser forcing the headers to be sent. So make sure the first TR line of your page has ?php and it is a good idea to drop the ? from TR included pages as there may be blank lines following which are just as TR

Re: [PHP] Problem with header

2004-03-24 Thread Chris Shiflett
--- Phil Matt [EMAIL PROTECTED] wrote: header(Location:thanks.shtml); Two errors here: 1. There is a space after the colon. 2. The URL must be an absolute URL. But no matter where I place it in the PHP file, I get the error message that says Headers already sent... Read this message. It

[PHP] problem with header

2003-01-30 Thread Martin
i have an script, it send a header response: ?php header (HTTP/1.1 206 Partial content); . it works fine im my server on windows2000 as apache module, but doesn´t work in my apache cgi on internet (linux). The following error appears when i run the script. [Wed Jan 29 11:07:18 2003]

[PHP] Problem with header redirect with register_globals off

2002-11-12 Thread pig pig
Hi All, I am having problem with redirecting using header function with register_globals off. It works fine on my PC but not on the site as the register_globals is off on the server. When redirecting on the server it gave an CGI error: CGI Error The specified CGI application misbehaved by not

Re: [PHP] Problem with header redirect with register_globals off

2002-11-12 Thread Marco Tabini
Can you post some code? Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Tue, 2002-11-12 at 08:52, pig pig wrote: Hi All, I am having problem with

RE: [PHP] Problem with header redirect with register_globals off

2002-11-12 Thread David Russell
To: [EMAIL PROTECTED] Subject: [PHP] Problem with header redirect with register_globals off Hi All, I am having problem with redirecting using header function with register_globals off. It works fine on my PC but not on the site as the register_globals is off on the server. When redirecting

[PHP] Problem with Header!

2001-11-16 Thread Andre Lacour
I want to sent a script-result as a renamed html-document to the client. I tried: - header(Content-Disposition: inside; filename=name.html); - header(Content-Disposition: inside; filename=\name.html\); - header(Content-Disposition: inside;); header(Content-filename=name.html); even with a

[PHP] Problem with header()

2001-09-06 Thread Stonix
Hi, Can anyone tell me why header cannot been used after any network operation? In my script, there are following steps: 1).a socket is opened for smtp; 2).send email; 3).closed the socket; 4).use header() to redirect to another page. If no 1), 2) and 3), 4) can be processed without any

[PHP] Problem with header()

2001-09-05 Thread Alex Shi
Hi, Can anyone tell me why header() cannot been used after any network operation? In my script, there are following steps: 1).a socket is opened for smtp; 2).send email; 3).closed the socket; 4).use header() to redirect to another page. If no 1), 2) and 3), 4) can be processed without any

[PHP] problem with header()

2001-06-27 Thread Sheni R. Meledath
Hello: Thank God. The mailing list is back and many thanks to the PHP Owners. I am having a problem using the header() function. I am using this function in a script that is used to download files. When used, I am getting a blank page with some junk characters and some html code, that I