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: >> > >> if (!$resp->is_valid) { >> // What happens whe

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: is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. G

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 th

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: Subject: [PHP] Problem with header("Location:" )...

[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: is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA sa

RE: [PHP] Problem with header();

2009-03-31 Thread Andrea Giammarchi
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(); > > I don't had the oportunity to tes

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-30 Thread Phpster
Output buffering turned off? Bastien Sent from my iPod On Mar 30, 2009, at 15:03, Igor Escobar 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 running in "Windows" (

Re: [PHP] Problem with header();

2009-03-30 Thread Stuart
2009/3/30 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 t

[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

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 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

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

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); print_r($erro

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); print_r($erro

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 in an if

2005-03-24 Thread Chris W. Parker
Jay Blanchard 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 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 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 Chris W. Parker
Jay Blanchard 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 if(!empty($errors

[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 */ he

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 m

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 > ext

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('C

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");

[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"); header("Cont

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.ph

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 th

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 f

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 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 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");

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

[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: Canno

[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: Canno

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 > to the browser forcing the headers to be sent. So make sure the first >> line of your page has from >> included pages as there may be blank lines fol

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

Re[2]: [PHP] Problem with header

2004-03-24 Thread Tom Rogers
Hi, TR> Any whitespace in any file before the to the browser forcing the headers to be sent. So make sure the first TR> line of your page has from TR> included pages as there may be blank lines following which are just as TR> bad. So the rule is, header() can go anywhere but before any output to

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

[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 als

Re: [PHP] problem with header

2003-01-30 Thread Chris Hayes
can it be related to the double slash in that path? /usr/local/php/bin//php At 15:42 30-1-2003, you wrote: i have an script, it send a header response: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem with header

2003-01-30 Thread Martin
i have an script, it send a header response: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-11-12 Thread David Russell
: [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 on

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 wi

[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 r

[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

[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 pro

[PHP] Problem with header()

2001-09-04 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 p

[PHP] problem with header()

2001-06-28 Thread Sheni R. Meledath
Hello: 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 haven't created. And in the location its showing the correct url. Details:

[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 haven