Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 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"); > Set the second optional argument to "true" See http://de.php.net/manual/en/fu

[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] 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] 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 e

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. :)

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 >

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. :) "As

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

2011-06-30 Thread Ashley Sheridan
Md Ashickur Rahman Noor wrote: >> >> On Thu, Jun 30, 2011 at 1:52 PM, Geoff Lane >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? >>

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

2011-06-30 Thread Arthur Moczulski
; 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, $_GET,

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

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 amalgamatio

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

2011-06-30 Thread Ashley Sheridan
ard L. Buskirk > >-Original Message- >From: Md Ashickur 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 whe

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

2011-06-30 Thread admin
lto: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. -- Dedicated

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

2011-06-29 Thread Md Ashickur Rahman Noor
ahman On Thu, Jun 30, 2011 at 12:34 PM, Ashley Sheridan wrote: > > > Md Ashickur Rahman Noor wrote: > > >I want to use POST when redirect via PHP Header function. Is it > >possible? > >-- >

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

2011-06-29 Thread Ashley Sheridan
Md Ashickur Rahman Noor wrote: >I want to use POST when redirect via PHP Header function. Is it >possible? >-- >Dedicated Linux Forum in >Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3

[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 Bangladesh<http://forums.linuxdesh.com/member.php?action=register&referrer=3%20> Follow Me Twiter <https://twitter.com/#%21

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

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

[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 When executed from server1(OS X), both cookies are set in browser, but when executed from server2(Linux), only

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 or

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

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

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 header()

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 s. I am redirectin

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 E

[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 s, it generates the

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 informa

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 b

RE: [PHP] Header function

2010-02-28 Thread Ashley Sheridan
mail.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, Nick allan wrote: > > Hi all > > > > Has anyone got any ideas why the following isn't g

RE: [PHP] Header function

2010-02-27 Thread Nick allan
27;Content-Type: application/msword'); 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

Re: [PHP] Header function

2010-02-27 Thread Richard Quadling
On 27 February 2010 04:32, Nick allan 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 get

[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

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 wrote: > Hi all > > The situation is as f

Re: [PHP] header function query

2010-02-26 Thread Richard Quadling
On 26 February 2010 06:49, Nick allan 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 currently looks

[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: application/msword

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

2010-01-14 Thread haliphax
On Wed, Jan 13, 2010 at 7:02 PM, Shawn McKenzie wrote: > 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(

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("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 = strtoupper(addslashes($_POST['projectcod

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'])); // p

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

2010-01-13 Thread Andrew Ballard
On Wed, Jan 13, 2010 at 2:39 PM, Richard S. Crawford 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 it's > greater tha

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

2010-01-13 Thread Bruno Fajardo
2010/1/13 Richard S. Crawford > > 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 > > //  Make sure the pr

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

2010-01-13 Thread Richard S. Crawford
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 // Make sure the project code is unique if (!$existingproject = my

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 rea

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 w

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-05 Thread Andrea Giammarchi
> Sorry, the .phps file wasn't updated, but the page still works as > expected even though I've printed stuff after the header (i tested that > just for fun). I already said magic behavior are not part of my developed code, unrelated output is an error, even if the download work, it is an err

Re: [PHP] Header problem

2009-10-05 Thread Ashley Sheridan
ude "inc/functions.inc"; >include "inc/default_functions.inc"; > > As you said earlier, spaces could do wierd stuff to a header > > Also switching between utf-8 and latin-1 character sets can make php > choke, I've experienced that before with sess

Re: [PHP] Header problem

2009-10-05 Thread Kim Madsen
make php choke, I've experienced 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

Re: [PHP] Header problem

2009-10-04 Thread Tommy Pham
Original Message > From: Kim Madsen > 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 fir

RE: [PHP] Header problem

2009-10-04 Thread Andrea Giammarchi
quot;links" 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: > > > > &

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 e

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 dat

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

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 lengt

Re: [PHP] Header problem

2009-10-04 Thread Kim Madsen
nt; filename="Maxwell - Bad Habits (Remixes).zip" Content-Transfer-Encoding: binary Keep-Alive: timeout=15, max=96 Connection: Keep-Alive Content-Type: application/zip So I think my problem is cache related in some way. Kind regards Kim > Date: Sat, 3 Oct 2009 13:30:38 +0200

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

RE: [PHP] Header problem

2009-10-03 Thread Andrea Giammarchi
o: 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 > there's an iframe, that opens another file), if certa

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

Re: [PHP] PHP Header issue

2009-09-18 Thread Angus Mann
luck 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 Contact Us The above is just snippet of the code but even this simple exam

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> I will look into getting from one page to the next page after a Submit If it's any help, I've got a light-weight contact-form code on github, that's meant to be dropped into an otherwise-static site with minimal fuss: http://github.com/bdunlap/Drop-in-Widgets/tree/master/contactform/ It uses a

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
o the next page after a Submit Thanks, /Ernie +++== -Original Message- From: Ernie Kemp [mailto:ernie.k...@sympatico.ca] Sent: September-18-09 2:27 PM To: 'HallMarc Websites'; 'Jim Lucas' Cc: php-general@list

Re: [PHP] PHP Header issue

2009-09-18 Thread Ben Dunlap
> The fundamental idea was to fill in a contact forum , submit it and then go > to an upload page. By "upload", do you mean "transmit the information that the user entered into the contact form"? Or is the upload page supposed to do something separate from the contact form? Ben -- PHP General

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

RE: [PHP] PHP Header issue

2009-09-18 Thread Ashley Sheridan
gt; Thanks, > /Ernie > +++ > -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 > Su

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

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

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
agentintellect.com] Sent: 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 expla

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

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Jim Lucas wrote: > Ernie Kemp wrote: >> >> >> >> >> >> >> Contact Us >> >> >> >> >> >> >> >> >> >> >> >> 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

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 Ashley Sheridan
lard [mailto:aball...@gmail.com] > Sent: September-18-09 12: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 wrote: > > > > > > > > > > > > Contact Us

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 S

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: >> > >> header("Location: advertise2.php"); >> >> ?> >> >> here u can do ur html >> >> >> >> not one

RE: [PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
et Subject: Re: [PHP] PHP Header issue On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp wrote: > > > > > > Contact Us > > > > > > > > > > > > The above is just snippet of the code but even this simple example throws the > Header Warning /

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

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: > > header("Location: advertise2.php"); > > ?> > > here u can do ur html > > > > not one! single char incl. space should be ou

Re: [PHP] PHP Header issue

2009-09-18 Thread Jim Lucas
Ernie Kemp wrote: > > > > > > > Contact Us > > > > > > > > > > > > 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 > started at /home/cont

[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: 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...@yahoo.de ""Ernie Kemp"" wrote in message ne

Re: [PHP] PHP Header issue

2009-09-18 Thread Andrew Ballard
On Fri, Sep 18, 2009 at 12:39 PM, Ernie Kemp wrote: > > > > > > Contact Us > > > > > > > > > > > > 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 >

[PHP] PHP Header issue

2009-09-18 Thread Ernie Kemp
Contact Us 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 started at /home/content/g/t/a /html/yourestate/advertise.php:6) in/home/content/g

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 of

Re: [PHP] header problem

2009-09-10 Thread Ashley Sheridan
u want the user to read the > page, you should do something in Javascript with setTimeout(func,timeout) > function. > > BR, > SanTa > > - Original Message - > From: "George Langley" > To: > Sent: Thursday, September 10, 2009 8:39 AM > Subje

Re: [PHP] header problem

2009-09-10 Thread HostWare Kft.
) function. BR, SanTa - Original Message - From: "George Langley" To: 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 a header command. So you need to work through a

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

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 Mailin

Re: [PHP] header problem

2009-09-09 Thread A.a.k
is there any alternative to header() for redirect users? "George Langley" 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 of your code, and e

Re: [PHP] header problem

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

[PHP] header problem

2009-09-09 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 wa

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 -- header('Location: http://intra.mdah.state.ms.us/helpdesk/viewpending.php?PHPSESSID='.SID); //

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

[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 is enabled. It must by passed manually using *SID* constant. so, I'm trying

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Daniel Brown
On Fri, Mar 13, 2009 at 13:15, Jan G.B. 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 obvious that your native

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Jan G.B.
2009/3/11 Daniel Brown : > On Wed, Mar 11, 2009 at 12:38, Jan G.B. 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 the HTTP/1.1 specifica

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Daniel Brown
On Wed, Mar 11, 2009 at 14:12, Shawn McKenzie 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 recommended guidelines (

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

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Daniel Brown
On Wed, Mar 11, 2009 at 12:38, Jan G.B. 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 clients behave li

Re: [PHP] Header - Redirect Command Not Working

2009-03-11 Thread Jan G.B.
Hi Dave (?) 2009/3/11 revDAVE : > Hi Bastien - Stuart & Daniel > > Thanks for your help! > > > On 3/10/2009 12:16 PM, "Bastien Koert" 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:

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" 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 PM, "Stuart"

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 15:13, revDAVE 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 have some out

  1   2   3   4   5   6   7   >