[PHP] Header Keep-Alive

2013-05-27 Thread Al
I'm trying to increase the connection timeout; but can't get it to work. Note: Keep-Alive gets repeated. I'm using: header(Connection: Keep-Alive); header(Keep-Alive: timeout=9, max=100); I get: (Status-Line) HTTP/1.1 200 OK DateMon, 27 May 2013 20:19:54 GMT Server Apache Connection

Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 Al n...@ridersite.org I'm trying to increase the connection timeout; but can't get it to work. Note: Keep-Alive gets repeated. I'm using: header(Connection: Keep-Alive); header(Keep-Alive: timeout=9, max=100); Set the second optional argument to true See

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Ashley Sheridan
Md Ashickur Rahman Noor ashickur.n...@gmail.com wrote: I want to use POST when redirect via PHP Header function. Is it possible? -- Dedicated Linux Forum in Bangladeshhttp://forums.linuxdesh.com/member.php?action=registerreferrer=3%20

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Md Ashickur Rahman Noor
, 2011 at 12:34 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Md Ashickur Rahman Noor ashickur.n...@gmail.com wrote: I want to use POST when redirect via PHP Header function. Is it possible? -- Dedicated Linux Forum in Bangladesh

RE: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread admin
...@gmail.com] Sent: Thursday, June 30, 2011 2:36 AM To: Ashley Sheridan Cc: php-general@lists.php.net Subject: Re: [PHP] I want to use POST when redirect via PHP Header function. For passing value to other page. -- Dedicated Linux Forum

RE: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Ashley Sheridan
Rahman Noor [mailto:ashickur.n...@gmail.com] Sent: Thursday, June 30, 2011 2:36 AM To: Ashley Sheridan Cc: php-general@lists.php.net Subject: Re: [PHP] I want to use POST when redirect via PHP Header function. For passing value to other page

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Geoff Lane
On Thursday, June 30, 2011, Md Ashickur Rahman Noor wrote: I want to use POST when redirect via PHP Header function. Is it possible? AFAICT, it isn't. You can use GET variables by passing them on the querystring. These can then be accessed via $_REQUEST, which is an amalgamation of $_POST

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Md Ashickur Rahman Noor
On Thu, Jun 30, 2011 at 1:52 PM, Geoff Lane ge...@gjctech.co.uk wrote: On Thursday, June 30, 2011, Md Ashickur Rahman Noor wrote: I want to use POST when redirect via PHP Header function. Is it possible? AFAICT, it isn't. You can use GET variables by passing them on the querystring

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Arthur Moczulski
to use POST when redirect via PHP Header function. Is it possible? AFAICT, it isn't. You can use GET variables by passing them on the querystring. These can then be accessed via $_REQUEST, which is an amalgamation of $_POST, $_GET, and $_COOKIE. So if you have a script that might take

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Ashley Sheridan
Md Ashickur Rahman Noor ashickur.n...@gmail.com wrote: On Thu, Jun 30, 2011 at 1:52 PM, Geoff Lane ge...@gjctech.co.uk wrote: On Thursday, June 30, 2011, Md Ashickur Rahman Noor wrote: I want to use POST when redirect via PHP Header function. Is it possible? AFAICT, it isn't. You can

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Jim Giner
Just as bottom posting (I know, it's in da rules) makes it rather difficult for humans to read thru a topic, scrolling thru ever-longer messages to get to the 'new' content. Let's solve it for all by only posting your own content and let the sum of all the messages equate to the topic. :)

RE: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Jasper Mulder
To: php-general@lists.php.net From: jim.gi...@albanyhandball.com Date: Thu, 30 Jun 2011 09:12:45 -0400 Subject: Re: [PHP] I want to use POST when redirect via PHP Header function. Just as bottom posting (I know, it's in da rules) makes it rather difficult for humans to read thru a topic

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Jim Giner
DON't get me started on the massacre of the English language on posting sites all over the internet! It seems that people are so wrought up in their problem-of-the-moment that they don't realize that they are mis-spelling, mis-typing and mis-stating their problem(s) in their frantic posts.

[PHP] Re: I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Geoff Lane
On Thursday, June 30, 2011, Jasper Mulder wrote: Personally, I think that incorrect spelling is far more annoying than the quoting; that is, if it does not originate from incapability due to English (whether it be British or American) being not the native language, as opposed to spelling

Re: [PHP] Re: I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Steve Staples
On Thu, 2011-06-30 at 15:20 +0100, Geoff Lane wrote: On Thursday, June 30, 2011, Jasper Mulder wrote: I think the moral is that one should never code when tired ;( or coding while drunk... my favorite typo is $this == 'value'; or $$this = 'value'; very hard to find sometimes... As

[PHP] I want to use POST when redirect via PHP Header function.

2011-06-29 Thread Md Ashickur Rahman Noor
I want to use POST when redirect via PHP Header function. Is it possible? -- Dedicated Linux Forum in Bangladeshhttp://forums.linuxdesh.com/member.php?action=registerreferrer=3%20 Follow Me Twiter https://twitter.com/#%21/AshickunNoor Thank

RE: [PHP] header function odd behavior

2011-06-28 Thread Ford, Mike
-Original Message- From: H Rao [mailto:hydsd...@gmail.com] Sent: 28 June 2011 04:40 I am trying to understand odd(different) behavior of the header function under two different environments. Here is the code which I am trying to execute from two different servers ? header

[PHP] header function odd behavior

2011-06-27 Thread H Rao
Hi, I am trying to understand odd(different) behavior of the header function under two different environments. Here is the code which I am trying to execute from two different servers ? header (Set-Cookie: c1=value1;path=/; domain=.domain.com); header (Set-Cookie: c2=value2;path=/;

Re: [PHP] header function odd behavior

2011-06-27 Thread Nilesh Govindarajan
On 06/28/2011 09:10 AM, H Rao wrote: Hi, I am trying to understand odd(different) behavior of the header function under two different environments. Here is the code which I am trying to execute from two different servers ? header (Set-Cookie: c1=value1;path=/; domain=.domain.com); header

[PHP] PHP - Header ERROR

2010-06-13 Thread Don Wieland
Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the original page with an ERROR, It seems when my COMMENT field contains BRs, it generates

Re: [PHP] PHP - Header ERROR

2010-06-13 Thread Ashley Sheridan
On Sun, 2010-06-13 at 06:43 -0700, Don Wieland wrote: Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the original page with an ERROR,

Re: [PHP] PHP - Header ERROR

2010-06-13 Thread Ashley Sheridan
On Sun, 2010-06-13 at 07:50 -0700, Don Wieland wrote: Yeah - I thought about that, but I don't know how to do this. I have a partner who admins my virtual private server. Oh well ;-) It is probably something I need to do to the header() string to accommodate the BRs. I am redirecting

Re: [PHP] PHP - Header ERROR

2010-06-13 Thread Don Wieland
On Jun 13, 2010, at 7:53 AM, Ashley Sheridan wrote: On Sun, 2010-06-13 at 07:50 -0700, Don Wieland wrote: Yeah - I thought about that, but I don't know how to do this. I have a partner who admins my virtual private server. Oh well ;-) It is probably something I need to do to the

Re: [PHP] PHP - Header ERROR

2010-06-13 Thread Ashley Sheridan
On Sun, 2010-06-13 at 08:06 -0700, Don Wieland wrote: On Jun 13, 2010, at 7:53 AM, Ashley Sheridan wrote: On Sun, 2010-06-13 at 07:50 -0700, Don Wieland wrote: Yeah - I thought about that, but I don't know how to do this. I have a partner who admins my virtual private server. Oh

[PHP] Re: PHP - Header ERROR

2010-06-13 Thread Shawn McKenzie
On 06/13/2010 08:43 AM, Don Wieland wrote: Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the original page with an ERROR, It seems when

Re: [PHP] Re: PHP - Header ERROR

2010-06-13 Thread Steve
On 6/13/2010 9:37 AM, Shawn McKenzie wrote: On 06/13/2010 08:43 AM, Don Wieland wrote: Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the

Re: [PHP] Header function

2010-03-01 Thread Kim Madsen
Ashley Sheridan wrote on 01/03/2010 07:13: The HTTP header doesn't treat quoteation marks in the same way that PHP does. It needs double quote marks to function correctly. How do you mean? And do you have a link to this information? Even if this is true, then the first Nick did should still

Re: [PHP] Header function

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 12:14 +0100, Kim Madsen wrote: Ashley Sheridan wrote on 01/03/2010 07:13: The HTTP header doesn't treat quoteation marks in the same way that PHP does. It needs double quote marks to function correctly. How do you mean? And do you have a link to this information?

RE: [PHP] Header function

2010-02-28 Thread Ashley Sheridan
@lists.php.net Subject: Re: [PHP] Header function On 27 February 2010 04:32, Nick allan nal...@wdev.net wrote: Hi all Has anyone got any ideas why the following isn't giving me correct filename in the ie save dialogue header('Content-Type: application/msword'); header('Content-Disposition

Re: [PHP] Header function

2010-02-27 Thread Richard Quadling
On 27 February 2010 04:32, Nick allan nal...@wdev.net wrote: Hi all Has anyone got any ideas why the following isn't giving me correct filename in the ie save dialogue header('Content-Type: application/msword');  header('Content-Disposition: attachment; filename=PurchaseReq.doc'); I

RE: [PHP] Header function

2010-02-27 Thread Nick allan
'); header(Content-Disposition: attachment; filename=PurchaseReq.doc); -Original Message- From: Richard Quadling [mailto:rquadl...@googlemail.com] Sent: Saturday, 27 February 2010 8:45 PM To: Nick allan Cc: php-general@lists.php.net Subject: Re: [PHP] Header function On 27 February 2010 04:32

Re: [PHP] header function query

2010-02-26 Thread Richard Quadling
On 26 February 2010 06:49, Nick allan nal...@wdev.net wrote: Hi all The situation is as follows I've read some data in from a couple of files into a string variable, made some changes to it and want to send the contents of the string out to the browser as a word document. My code

Re: [PHP] header function query

2010-02-26 Thread Rene Veerman
output the html you want to send afterwards first, then either put a link to another script that outputs the word file, or have an auto-launch ajax routine (i recommend jquery.com for ajax) do it automatically. On Fri, Feb 26, 2010 at 7:49 AM, Nick allan nal...@wdev.net wrote: Hi all The

[PHP] Header function

2010-02-26 Thread Nick allan
Hi all Has anyone got any ideas why the following isn't giving me correct filename in the ie save dialogue header('Content-Type: application/msword'); header('Content-Disposition: attachment; filename=PurchaseReq.doc'); I get the save dialogue, but with preq.doc instead of PurchaseReq.doc

[PHP] header function query

2010-02-25 Thread Nick allan
Hi all The situation is as follows I've read some data in from a couple of files into a string variable, made some changes to it and want to send the contents of the string out to the browser as a word document. My code currently looks like the following header('Content-Type:

Re: [PHP] header(Location:...) fails

2010-01-14 Thread haliphax
On Wed, Jan 13, 2010 at 7:02 PM, Shawn McKenzie nos...@mckenzies.netwrote: Robert Cummings wrote: Just make your life easy and create a redirect() function that generates the header instruction, makes a relative URL into an absolute URL and does the exit call. Then you just need to do:

Re: [PHP] header(Location:...) fails

2010-01-13 Thread Bruno Fajardo
2010/1/13 Richard S. Crawford rscrawf...@mossroot.com Here is a snippet of code that is going to be the death of me: //  Create a new project $projectcode = strtoupper(addslashes($_POST['projectcode']));   //  project code //  

Re: [PHP] header(Location:...) fails

2010-01-13 Thread Andrew Ballard
On Wed, Jan 13, 2010 at 2:39 PM, Richard S. Crawford rscrawf...@mossroot.com wrote: Now, even if $numprojects is 1, 2, 3, etc., the header() command is not executed. Strangely, a header(Location) command later on in the script *is* executed. I've output the value of $numprojects, so I know that

Re: [PHP] header(Location:...) fails

2010-01-13 Thread Paul M Foster
On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode = strtoupper(addslashes($_POST['projectcode'])); //

Re: [PHP] header(Location:...) fails

2010-01-13 Thread Robert Cummings
Paul M Foster wrote: On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode =

Re: [PHP] header(Location:...) fails

2010-01-13 Thread Shawn McKenzie
Robert Cummings wrote: Just make your life easy and create a redirect() function that generates the header instruction, makes a relative URL into an absolute URL and does the exit call. Then you just need to do: redirect( 'target.php' ); So much simpler :) Cheers, Rob.

Re: [PHP] Header problem - SOLVED

2009-10-19 Thread Kim Madsen
This has been solved today. Talawa had a similar problem and came up with a solution to his problem, namely using session_write_close() before creating the headers. That stunt also solved my problem :-) -- Kind regards Kim Emax Kim Madsen wrote on 2009-10-03 13:30: Hi PHP people I have a

Re: [PHP] Header problem - solved

2009-10-16 Thread Kim Madsen
Andrea Giammarchi wrote on 2009-10-05 18:26: There's a useful function called headers_sent() which checks to see if the headers have already been sent to the browser. This might be a good place to throw into your code at various points to check and see if something is being written

Re: [PHP] Header problem

2009-10-05 Thread Kim Madsen
From: php@emax.dk To: php-general@lists.php.net Subject: Re: [PHP] Header problem Hello Andrea Andrea Giammarchi wrote on 2009-10-04 18:49: Header must come first (before you output anything) or you get a parse error I try to better explain ... HTTP works

Re: [PHP] Header problem

2009-10-05 Thread Ashley Sheridan
that before with sessions. Kind regards Kim Date: Sun, 4 Oct 2009 19:09:35 +0200 From: php@emax.dk To: php-general@lists.php.net Subject: Re: [PHP] Header problem Hello Andrea Andrea Giammarchi wrote on 2009-10-04 18:49: Header must come first

RE: [PHP] Header problem

2009-10-05 Thread Andrea Giammarchi
There's a useful function called headers_sent() which checks to see if the headers have already been sent to the browser. This might be a good place to throw into your code at various points to check and see if something is being written which you don't expect. true, check that as well,

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
regards Kim Date: Sat, 3 Oct 2009 13:30:38 +0200 From: php@emax.dk To: php-general@lists.php.net Subject: [PHP] Header problem Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
Hi kranthi kranthi wrote on 2009-10-03 16:21: Thats a lot of headers to read.. At a first glance I can see that you did not specify a content-length header. this is a must and must be equal to the size of the file in bytes I've noticed that too, but it's impossiple to determine the length

Re: [PHP] Header problem

2009-10-04 Thread Ashley Sheridan
On Sun, 2009-10-04 at 18:10 +0200, Kim Madsen wrote: Hi kranthi kranthi wrote on 2009-10-03 16:21: Thats a lot of headers to read.. At a first glance I can see that you did not specify a content-length header. this is a must and must be equal to the size of the file in bytes

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
Header must come first (before you output anything) or you get a parse error I try to better explain ... HTTP works like this: you ask something, you receive something, html and texts are just one option. Your example page mess up html, zip, everything, because when you download a file

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
Afaik, the content length header is not necessary, but it will cause problems if it's set and it's wrong. correct, missed Content-Length means the classic download with useless progress bar and undefined estimation time, problematic for preloader as well in case of images, swf, generic

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
Hello Andrea Andrea Giammarchi wrote on 2009-10-04 18:49: Header must come first (before you output anything) or you get a parse error I try to better explain ... HTTP works like this: you ask something, you receive something, html and texts are just one option. Got it so far Your

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
at the end of the page ... Regards Date: Sun, 4 Oct 2009 19:09:35 +0200 From: php@emax.dk To: php-general@lists.php.net Subject: Re: [PHP] Header problem Hello Andrea Andrea Giammarchi wrote on 2009-10-04 18:49: Header must come first (before you output anything) or you get

Re: [PHP] Header problem

2009-10-04 Thread Tommy Pham
Original Message From: Kim Madsen php@emax.dk To: php-general@lists.php.net Sent: Sun, October 4, 2009 9:10:36 AM Subject: Re: [PHP] Header problem Hi kranthi kranthi wrote on 2009-10-03 16:21: Thats a lot of headers to read.. At a first glance I can see that you did

[PHP] Header problem

2009-10-03 Thread Kim Madsen
Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php there's an iframe, that opens another file), if certain check are okay then a popup window opens download.php, where a mp3 file is fetched from the

RE: [PHP] Header problem

2009-10-03 Thread Andrea Giammarchi
Subject: [PHP] Header problem Hi PHP people I have a really strange and annoying problem. I've got a site, where members can download music. User clicks index.php (in index.php there's an iframe, that opens another file), if certain check are okay then a popup window opens download.php

Re: [PHP] Header problem

2009-10-03 Thread kranthi
Thats a lot of headers to read.. At a first glance I can see that you did not specify a content-length header. this is a must and must be equal to the size of the file in bytes -- Kranthi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error. Warning: Cannot modify header information - headers already sent by (output

Re: [PHP] PHP Header issue

2009-09-18 Thread Andrew Ballard
On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error

[PHP] Re: PHP Header issue

2009-09-18 Thread Ralph Deffke
sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl. space should be outputted before the header e.g. before the php open tag. ralph_def

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Ernie Kemp wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error. Warning: Cannot modify header information

Re: [PHP] Re: PHP Header issue

2009-09-18 Thread Ashley Sheridan
On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote: sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl. space should be outputted

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
http://us3.php.net/manual/en/function.header.php Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4438 (20090918) __ The message was checked by ESET Smart Security. http://www.eset.com --

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
: [PHP] PHP Header issue On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws

RE: [PHP] Re: PHP Header issue

2009-09-18 Thread Bob McConnell
From: Ashley Sheridan On Fri, 2009-09-18 at 19:01 +0200, Ralph Deffke wrote: sorry man, but no blancs etc. means NOTHING should be send before the header it should look like this: ?php header(Location: advertise2.php); ? here u can do ur html not one! single char incl

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
I'm bewildered, bemused, astonished and am trying really hard not to lash out Thank you, Marc Hall HallMarc Websites 610.446.3346 __ Information from ESET Smart Security, version of virus signature database 4438 (20090918) __ The message was checked by ESET Smart

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
:44 PM To: Ernie Kemp Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Header issue On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html

RE: [PHP] Re: PHP Header issue

2009-09-18 Thread Andrea Giammarchi
I think this sort of issue arises particularly because of the misconception that PHP is embedded inside HTML pages. Once a person has that idea in their head, they will start to work with an HTML template and add PHP as necessary. While that can work, in cases such as this, it's best to

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Jim Lucas wrote: Ernie Kemp wrote: html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body /html The above is just snippet of the code but even this simple example throws the Header Warning / Error. Warning: Cannot modify header

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
if ... you have output_buffering option enabled in the php configuration. Which is probably the case on the OP's local machine, and would explain why the code doesn't fail for him there. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
: September-18-09 1:41 PM To: Jim Lucas Cc: Ernie Kemp; php-general@lists.php.net Subject: Re: [PHP] PHP Header issue if ... you have output_buffering option enabled in the php configuration. Which is probably the case on the OP's local machine, and would explain why the code doesn't fail for him

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
-Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, September 18, 2009 1:33 PM To: Ernie Kemp Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Header issue Jim Lucas wrote: Ernie Kemp wrote: html head titleContact Us/title /head

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
: HallMarc Websites [mailto:m...@hallmarcwebsites.com] Sent: September-18-09 2:00 PM To: 'Jim Lucas'; 'Ernie Kemp' Cc: php-general@lists.php.net Subject: RE: [PHP] PHP Header issue -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, September 18, 2009 1:33 PM

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
+++ -Original Message- From: HallMarc Websites [mailto:m...@hallmarcwebsites.com] Sent: September-18-09 2:00 PM To: 'Jim Lucas'; 'Ernie Kemp' Cc: php-general@lists.php.net Subject: RE: [PHP] PHP Header issue -Original Message- From: Jim Lucas

RE: [PHP] PHP Header issue

2009-09-18 Thread HallMarc Websites
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Friday, September 18, 2009 2:31 PM To: Ernie Kemp Cc: 'HallMarc Websites'; 'Jim Lucas'; php-general@lists.php.net Subject: RE: [PHP] PHP Header issue On Fri, 2009-09-18 at 14:26 -0400, Ernie Kemp

Re: [PHP] PHP Header issue

2009-09-18 Thread Angus Mann
with it! - Original Message - From: Ernie Kemp To: php-general@lists.php.net Sent: Saturday, September 19, 2009 2:39 AM Subject: [PHP] PHP Header issue html head titleContact Us/title /head body ?php header(Location: advertise2.php); ? /body

[PHP] header problem

2009-09-10 Thread A.a.k
hello I recentrly uploaded my project from localhost to a hosting and found many errors and warnings which didnt have in local. one of the most annoying one is header('Location xxx'). I have used header to redirect users from pages, and kinda used it alot. i know about the whitespace causing

Re: [PHP] header problem

2009-09-10 Thread George Langley
Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot use a header command. So you need to work through all of your code, and ensure that all of your logic that could result in a header call is run BEFORE you send any html code. Is going to be tricky if mixing html and

Re: [PHP] header problem

2009-09-10 Thread A.a.k
is there any alternative to header() for redirect users? George Langley george.lang...@shaw.ca wrote in message news:b1b897d4-7448-4b71-bffc-3addc27ce...@shaw.ca... Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot use a header command. So you need to work through all

Re: [PHP] header problem

2009-09-10 Thread Marcus Gnaß
A.a.k wrote: is there any alternative to header() for redirect users? As far as I know there isn't. Is the header-error the first error on the page? If not, the other error message itself is the reason for the header-error and will be solved if you solve the other error. -- PHP General

Re: [PHP] header problem

2009-09-10 Thread Ashley Sheridan
On Thu, 2009-09-10 at 08:57 +0200, A.a.k wrote: is there any alternative to header() for redirect users? George Langley george.lang...@shaw.ca wrote in message news:b1b897d4-7448-4b71-bffc-3addc27ce...@shaw.ca... Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot

Re: [PHP] header problem

2009-09-10 Thread HostWare Kft.
(func,timeout) function. BR, SanTa - Original Message - From: George Langley george.lang...@shaw.ca To: php-general@lists.php.net Sent: Thursday, September 10, 2009 8:39 AM Subject: Re: [PHP] header problem Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot use

Re: [PHP] header problem

2009-09-10 Thread Ashley Sheridan
to read the page, you should do something in Javascript with setTimeout(func,timeout) function. BR, SanTa - Original Message - From: George Langley george.lang...@shaw.ca To: php-general@lists.php.net Sent: Thursday, September 10, 2009 8:39 AM Subject: Re: [PHP] header

RE: [PHP] header problem

2009-09-10 Thread Arno Kuhl
-Original Message- From: A.a.k [mailto:blue...@gmail.com] Sent: 10 September 2009 08:27 AM To: php-general@lists.php.net Subject: [PHP] header problem hello I recentrly uploaded my project from localhost to a hosting and found many errors and warnings which didnt have in local. one

[PHP] header() and passing sessions

2009-04-15 Thread Adam Williams
I need some help passing a session variable with a header() function. According to www.php.net/header, the documentation states: *Note*: Session ID is not passed with Location header even if session.use_trans_sid session.configuration.php#ini.session.use-trans-sid is enabled. It must by

RE: [PHP] header() and passing sessions

2009-04-15 Thread abdulazeez alugo
Date: Wed, 15 Apr 2009 11:09:19 -0500 From: awill...@mdah.state.ms.us To: php-general@lists.php.net Subject: [PHP] header() and passing sessions I need some help passing a session variable with a header() function. According to www.php.net/header, the documentation states: *Note

Re: [PHP] header() and passing sessions

2009-04-15 Thread Adam Williams
abdulazeez alugo wrote: Hi, Well I'ld say the reason is quite obvious. You have simply not set $_session[username] . I'ld have done something like: -- option.php -- ?php session_start(); if ($_POST[option] == View Pending Requests) { $_session[username]= true; //sets the session

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Jan G.B.
2009/3/11 Daniel Brown danbr...@php.net: On Wed, Mar 11, 2009 at 12:38, Jan G.B. ro0ot.w...@googlemail.com wrote: wrong: Location: file.txt and this is correct Location: http://www.x.x/file.txt; Not all clients behave like yours and accept the wrong header.    The *protocol* does not, but

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Daniel Brown
On Fri, Mar 13, 2009 at 13:15, Jan G.B. ro0ot.w...@googlemail.com wrote: Where's your point? Proving that you know the well known clients and their behaviour? Just stick to the standards. easy. no or less errors occur. Okay, I'm not going to get into a flame war with you, because it's

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Jan G.B.
Hi Dave (?) 2009/3/11 revDAVE c...@hosting4days.com: Hi Bastien - Stuart Daniel Thanks for your help! On 3/10/2009 12:16 PM, Bastien Koert phps...@gmail.com wrote: Are you getting an error? What does 'not working' mean? No errors the page just stayed on the header('Location:

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Daniel Brown
On Wed, Mar 11, 2009 at 12:38, Jan G.B. ro0ot.w...@googlemail.com wrote: One more thing to mention: The HTTP Protocoll requires you to give a full URL on Location Headers. That means that this is wrong: Location: file.txt and this is correct Location: http://www.x.x/file.txt; Not all

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Mar 11, 2009 at 12:38, Jan G.B. ro0ot.w...@googlemail.com wrote: One more thing to mention: The HTTP Protocoll requires you to give a full URL on Location Headers. That means that this is wrong: Location: file.txt and this is correct Location:

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Daniel Brown
On Wed, Mar 11, 2009 at 14:12, Shawn McKenzie nos...@mckenzies.net wrote: Though the w3c HTML/XHTML standards do show the META tag inside the head, hence the validation errors (http://validator.w3.org/#validate_by_input): Right, which should be no surprise. Validation follows the

[PHP] Header - Redirect Command Not Working

2009-03-10 Thread revDAVE
Newbie question... At the end of a php block I'm trying to use a redirect to go to another page. header('Location: show.php'); It works on my test server w php 5.2.6 but not at the main server w v 5.12 Is there a way to get it to go to the other page (even with a different command/function) -

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Bastien Koert
On Tue, Mar 10, 2009 at 3:13 PM, revDAVE c...@hosting4days.com wrote: Newbie question... At the end of a php block I'm trying to use a redirect to go to another page. header('Location: show.php'); It works on my test server w php 5.2.6 but not at the main server w v 5.12 Is there a way

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Stuart
2009/3/10 revDAVE c...@hosting4days.com Newbie question... At the end of a php block I'm trying to use a redirect to go to another page. header('Location: show.php'); It works on my test server w php 5.2.6 but not at the main server w v 5.12 Is there a way to get it to go to the other

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 15:13, revDAVE c...@hosting4days.com wrote: Newbie question... At the end of a php block I'm trying to use a redirect to go to another page. header('Location: show.php'); It works on my test server w php 5.2.6 but not at the main server w v 5.12 Did you already

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread revDAVE
Hi Bastien - Stuart Daniel Thanks for your help! On 3/10/2009 12:16 PM, Bastien Koert phps...@gmail.com wrote: Are you getting an error? What does 'not working' mean? No errors the page just stayed on the header('Location: show.php'); page - never went to: show.php --- On 3/10/2009 12:17

[PHP] header(Location: ) wont show up in logs of either server

2009-01-08 Thread Rene Veerman
Hi, i'm doing a forward to another server (somehost.com/2.php) by using header(Location: http://someserver.com/script/1.php;); But on neither servers do i get hits in the apache access log for either script being called. Any ideas? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] header(Location: ) wont show up in logs of either server

2009-01-08 Thread Jim Lucas
Rene Veerman wrote: Hi, i'm doing a forward to another server (somehost.com/2.php) by using header(Location: http://someserver.com/script/1.php;); But on neither servers do i get hits in the apache access log for either script being called. Any ideas? Make sure you are looking at

  1   2   3   4   5   6   7   >