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

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

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

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

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

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
Andrea Giammarchi wrote on 2009-10-03 13:40: > Do you want users download the file or the zip? They can choose between the two. > do you send other headers before the download? Header must come first (before you output anything) or you get a parse error, so I'm not sure what you mean here? You

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
Do you want users download the file or the zip? do you send other headers before the download? It's quite a common error to set a default header in PHP at the beginning of whatever application, while header should be used as last exit point and never in the middle, or at the beginning, of a resp

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

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

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

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

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

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Stuart
2009/3/10 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 wi

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Bastien Koert
On Tue, Mar 10, 2009 at 3:13 PM, 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 > > Is there a way to get it to

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

2009-01-08 Thread Jim Lucas
Rene Veerman wrote: Andrew Ballard wrote: I'll take the simple answer and say neither script IS being called? OK, I'll go back to my corner now. Andrew [Geesh - I take the time to send out a sarcastic message and forget to send it to the list.] The scripts are called, because i can see th

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

2009-01-08 Thread Rene Veerman
Andrew Ballard wrote: I'll take the simple answer and say neither script IS being called? OK, I'll go back to my corner now. Andrew [Geesh - I take the time to send out a sarcastic message and forget to send it to the list.] The scripts are called, because i can see the data coming back fr

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

2009-01-08 Thread Andrew Ballard
On Thu, Jan 8, 2009 at 7:17 PM, 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 ide

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 l

Re: [PHP] header modify errors

2008-12-15 Thread Jim Lucas
Terion Miller wrote: > I am working from home today and getting this error with my copy of my > project: > *Warning*: Cannot modify header information - headers already sent by > (output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31) > in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSy

Re: [PHP] Header() - POST

2008-09-11 Thread Dan Joseph
I actually just completely re-engineered this page. It made sense reading what everyone had to say. The extra page that I wanted to post to was really not needed. I have everything just contained in the one php script now, and its working perfectly that way. After it submits the order, it then

Re: [PHP] Header() - POST

2008-09-11 Thread mike
On Thu, Sep 11, 2008 at 12:47 AM, Luke <[EMAIL PROTECTED]> wrote: > But surely you can post data with Javascript? Ach, at college now I can't > access my source, I forget how to do it exactly... yes, i said javascript. something on the client side has to do it. (well besides for a curl-based form

Re: [PHP] Header() - POST

2008-09-11 Thread Luke
But surely you can post data with Javascript? Ach, at college now I can't access my source, I forget how to do it exactly... 2008/9/11 mike <[EMAIL PROTECTED]> > On Wed, Sep 10, 2008 at 3:42 PM, tedd <[EMAIL PROTECTED]> wrote: > > > Then use cURL as was suggested before. > > the reply was on his

Re: [PHP] Header() - POST

2008-09-10 Thread mike
On Wed, Sep 10, 2008 at 3:42 PM, tedd <[EMAIL PROTECTED]> wrote: > Then use cURL as was suggested before. the reply was on his original attempt to header("POST: /foo") ... that was it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header() - POST

2008-09-10 Thread tedd
At 3:32 PM -0700 9/10/08, mike wrote: On Wed, Sep 10, 2008 at 2:51 PM, tedd <[EMAIL PROTECTED]> wrote: At 10:14 AM -0700 9/5/08, mike wrote: if you want to re-post data you need to look at a client-side alternative using javascript (or applets - flash, java, etc) OR just use hidden input

Re: [PHP] Header() - POST

2008-09-10 Thread mike
On Wed, Sep 10, 2008 at 2:51 PM, tedd <[EMAIL PROTECTED]> wrote: > At 10:14 AM -0700 9/5/08, mike wrote: >> >> if you want to re-post data you need to look at a client-side >> alternative using javascript (or applets - flash, java, etc) > > OR just use hidden input. > > I do that with forms that ga

Re: [PHP] Header() - POST

2008-09-10 Thread tedd
At 10:14 AM -0700 9/5/08, mike wrote: if you want to re-post data you need to look at a client-side alternative using javascript (or applets - flash, java, etc) OR just use hidden input. I do that with forms that gather pages of data. You keep submitting the same page over and over gathering

Re: [PHP] Header() - POST

2008-09-05 Thread Luke
POST requests in Ajax (or without in js) is straight forward. On the iPod now but I'll POST an example later. Get it? Luke Slater Lead Developer NuVoo On 5 Sep 2008, at 18:14, mike <[EMAIL PROTECTED]> wrote: On Fri, Sep 5, 2008 at 9:20 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: On a sid

Re: [PHP] Header() - POST

2008-09-05 Thread mike
On Fri, Sep 5, 2008 at 9:20 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > On a side note... in the future, if you find that a particular process > calls for POSTing to a different page, the cURL library (which I believe > is now included with PHP by default in v5.x+) can accomplish a plethora > o

RE: [PHP] Header() - POST

2008-09-05 Thread Boyd, Todd M.
> -Original Message- > From: Dan Joseph [mailto:[EMAIL PROTECTED] > Sent: Friday, September 05, 2008 11:16 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Header() - POST > > On Fri, Sep 5, 2008 at 12:11 PM, Boyd, Todd M. <[EMAIL PROTECTED]> > wrote:

Re: [PHP] Header() - POST

2008-09-05 Thread Dan Joseph
On Fri, Sep 5, 2008 at 12:11 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Dan Joseph [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 05, 2008 10:59 AM > > To: PHP General > > Subject: Re: [PHP] Header() - POST >

Re: [PHP] Header() - POST

2008-09-05 Thread Stut
On 5 Sep 2008, at 16:43, Dan Joseph wrote: I am trying to figure out how to build a post string, and then user header to post it. I've done some research and I am not getting very far. Basically what I'm doing is taking POST items, then validating them, scrubbing them, and rebuidling the post

RE: [PHP] Header() - POST

2008-09-05 Thread Boyd, Todd M.
> -Original Message- > From: Dan Joseph [mailto:[EMAIL PROTECTED] > Sent: Friday, September 05, 2008 10:59 AM > To: PHP General > Subject: Re: [PHP] Header() - POST > > On Fri, Sep 5, 2008 at 11:48 AM, Wolf <[EMAIL PROTECTED]> wrote: > > > > >

Re: [PHP] Header() - POST

2008-09-05 Thread Dan Joseph
On Fri, Sep 5, 2008 at 11:48 AM, Wolf <[EMAIL PROTECTED]> wrote: > > > scrubbing them, and rebuidling the post string and trying to resubmitt it > > using headers(). I'm getting this error: > > Why do you want to re-submit it? > > Why not just parse it in the same page? > > If not that, then use

Re: [PHP] Header() - POST

2008-09-05 Thread Wolf
> scrubbing them, and rebuidling the post string and trying to resubmitt it > using headers(). I'm getting this error: Why do you want to re-submit it? Why not just parse it in the same page? If not that, then use sessions and set the information, do a meta-refresh to redirect to the processi

Re: [PHP] Header Redirect

2008-05-28 Thread Robert Cummings
On Tue, 2008-05-27 at 20:50 +0100, Stut wrote: > On 27 May 2008, at 19:18, Robert Cummings wrote: > > On Tue, 2008-05-27 at 18:04 +0100, Stut wrote: > >> On 27 May 2008, at 17:54, Robert Cummings wrote: > >>> On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: > On 27 May 2008, at 17:06, Yui Hiroa

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 19:18, Robert Cummings wrote: On Tue, 2008-05-27 at 18:04 +0100, Stut wrote: On 27 May 2008, at 17:54, Robert Cummings wrote: On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: On 27 May 2008, at 17:06, Yui Hiroaki wrote: I would like to have some question. For example, I am i

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
f not then the whole thing becomes a bit pointless. -Stut -- http://stut.net/ Stut <[EMAIL PROTECTED]> wrote: CC: PHP General List > From: Stut <[EMAIL PROTECTED]> To: Robert Cummings <[EMAIL PROTECTED]> Date: Tue, 27 May 2008 18:04:02 +0100 Subject: Re: [PHP] Header Redir

Re: [PHP] Header Redirect

2008-05-27 Thread Robert Cummings
On Tue, 2008-05-27 at 18:04 +0100, Stut wrote: > On 27 May 2008, at 17:54, Robert Cummings wrote: > > On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: > >> On 27 May 2008, at 17:06, Yui Hiroaki wrote: > >>> I would like to have some question. > >>> > >>> For example, > >>> I am in http://example.com

Re: [PHP] Header Redirect

2008-05-27 Thread elk dolk
Date: Tue, 27 May 2008 18:04:02 +0100 Subject: Re: [PHP] Header Redirect On 27 May 2008, at 17:54, Robert Cummings wrote: > On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: >> On 27 May 2008, at 17:06, Yui Hiroaki wrote: >>> I would like to have some question. >>> &g

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 17:54, Robert Cummings wrote: On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: On 27 May 2008, at 17:06, Yui Hiroaki wrote: I would like to have some question. For example, I am in http://example.com/?12324242 I would like to REDIRECT from http://example.com/?1312323232 to

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 17:45, Yui Hiroaki wrote: I try it following your adivice; Code*** http://example.com/";); exit(); } ?> But I still need toconfigure below; http://example/index.php?123233 and http://example/index.php/?123233 Can you help me? 0)

Re: [PHP] Header Redirect

2008-05-27 Thread Robert Cummings
On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: > On 27 May 2008, at 17:06, Yui Hiroaki wrote: > > I would like to have some question. > > > > For example, > > I am in http://example.com/?12324242 > > > > I would like to REDIRECT from http://example.com/?1312323232 > > to http://example.com/ > >

Re: [PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 11:16 am, Ross wrote: > any reason why this should be? Things that could go wrong: 1. output_buffering can make "header" work when it shouldn't because it will buffer HTML (or other) output and then it "works" 2. Location: URLs are supposed to be full-blown URLs. Maybe it

Re: [PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Dave Goodchild
Provide some code...?

Re: [PHP] header

2006-11-24 Thread Richard Lynch
On Fri, November 24, 2006 9:13 am, João Cândido de Souza Neto wrote: > In my index.php file of my system i have got just one php tag in which > it > starts a smarty object, make a lot of includes of templates and use > $smarty->display("index.tpl") to show the result. > > Until i know, smarty do no

Re: [PHP] header lost session variables.

2006-08-14 Thread Richard Lynch
On Mon, August 14, 2006 6:56 pm, J R wrote: > On 8/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> > wrote: >> >> I´m in the follow location: >> >> https://www2.../?modulo=seguro&acao=identifica >> >> And in my script i use header("Location: >> ./?modulo=seguro&acao=novo_cadastro") > > >

Re: [PHP] header lost session variables.

2006-08-14 Thread Richard Lynch
On Mon, August 14, 2006 8:04 am, João Cândido de Souza Neto wrote: > Anyone here know why in some cases when i use (header("Location: > ???"); the > system lost the session variables? Yes. The browser gets headers such as this: Location: http://example.com Cookie: Example Value *SOME* browsers,

Re: [PHP] header lost session variables.

2006-08-14 Thread J R
On 8/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote: I´m in the follow location: https://www2.../?modulo=seguro&acao=identifica And in my script i use header("Location: ./?modulo=seguro&acao=novo_cadastro") i normally do header("Location: ?modulo=seguro&acao=novo_cadastro"

Re: [PHP] header lost session variables.

2006-08-14 Thread Jo�o C�ndido de Souza Neto
I´m in the follow location: https://www2.../?modulo=seguro&acao=identifica And in my script i use header("Location: ./?modulo=seguro&acao=novo_cadastro") When it run, my system lost all session variables. ""BBC"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] >> Hi guys.

Re: [PHP] header lost session variables.

2006-08-14 Thread BBC
> Hi guys. > > Anyone here know why in some cases when i use (header("Location: ???"); the > system lost the session variables? > > Any tips will be apreciated. > Thanks in advantge. Please tell me the cases you mean..! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Header("Location: ... or Header("Refresh: 0;...

2006-05-16 Thread Richard Lynch
On Tue, May 16, 2006 10:48 am, Kevin Davies wrote: > header ("Refresh: 0; > URL=cart.php?action=add&id=$reference&c=$cat&p=$page"); > exit; I don't think this is a "real" header -- just some made-up crapola from MS that "works" on most browsers, from the bully-pulpit principle. You'd have to read

Re: [PHP] header WWW-Authenticate Question

2006-01-26 Thread Manuel Lemos
Hello, > I am trying to send username/password credentials to a web server using a > PHP script. This is done to automatically log into a web camera from my > workstation. I don't know if the header www-authenticate option is the > correct one (or if it's even possible) to use for this. You may

Re: [PHP] header WWW-Authenticate Question

2006-01-26 Thread Richard Lynch
On Thu, January 26, 2006 1:02 pm, News1 wrote: > I am trying to send username/password credentials to a web server > using a > PHP script. This is done to automatically log into a web camera from > my > workstation. I don't know if the header www-authenticate option is > the > correct one (or if

Re: [PHP] header WWW-Authenticate Question

2006-01-26 Thread Philip Hallstrom
I have been looking for this in several areas and I can't seem to find it. I'm new to PHP (any programming since FORTRAN, really :) so please forgive my ignorance. I am trying to send username/password credentials to a web server using a PHP script. This is done to automatically log into a web c

Re: [PHP] HEADER + target?

2005-09-19 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: I wasn't clear enough.. hm.. I meant that lets say, I have two frames = leftFrame and rightFrame. I'm in leftFrame and want to redirect to a page called fire.php in the rightFrame. If I use HEADER("Location: fire.phg"); then the current frame will be updated (leftFrame),

Re: [PHP] HEADER + target?

2005-09-19 Thread Gustav Wiberg
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: "PHP General" Sent: Monday, September 19, 2005 10:31 AM Subject: Re: [PHP] HEADER + target? Gustav Wiberg wrote: I think this question has been on the list before, but I can't

Re: [PHP] HEADER + target?

2005-09-19 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: I think this question has been on the list before, but I can't find it. I want to do like this: parent.mainFrame.location = 'fire.php'; ...but in PHP with the HEADER() - function... Not that hard to find... http://php.net/header header('Location: http://www.example.co

  1   2   3   4   >