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

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

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

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

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

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
Could you post some code? David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com -Original Message- From: pig pig [mailto:pigpig8080;yahoo.com.sg] Sent: 12 November 2002 03:52 PM To: