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] 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 function, I'm stumped

2003-12-09 Thread Jon Kriek
-- Jon Kriek www.phpfreaks.com www.jonkriek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header function, I'm stumped

2003-12-09 Thread Chris Shiflett
--- Kelly Hallman <[EMAIL PROTECTED]> wrote: > On Tue, 2 Dec 2003, Chris Hubbard wrote: > > All, dealing with header("location:...") again. and trying to > > understand what's happening. I've got the following code: > > header("Location:http://www.mysite.com/cp/ad/ad_details.php?id=";. > $id); >

Re: [PHP] header function, I'm stumped

2003-12-09 Thread Kelly Hallman
On Tue, 2 Dec 2003, Chris Hubbard wrote: > All, dealing with header("location:...") again. and trying to > understand what's happening. I've got the following code: > header("Location:http://www.mysite.com/cp/ad/ad_details.php?id=";. $id); I'm kinda surprised I didn't see this mentioned.. Have yo

Re: [PHP] header function, I'm stumped

2003-12-02 Thread Chris Shiflett
--- Chris Hubbard <[EMAIL PROTECTED]> wrote: > header("Location:http://www.mysite.com/cp/ad/ad_details.php?id=";. $id); There should be a space after the first colon there. > Then I used LiveHTTPHeaders in Mozilla and it give me some interesting > information, though I'm not quite sure how to int

Re: [PHP] header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Sound like a good idea. I'll see if I can find this on the Internet and see what happen. "Bertrand Moulard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > now that I'm rethinking of it, I solved the problem by using the brilliant > python program tcpwatch, which logs all the http d

Re: [PHP] header() function for displaying an opened PDF document.

2003-10-14 Thread Scott Fletcher
Not using the session. :-) Oh well... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are you using sessions? Then you need > session_cache_limiter('private_no_expire'); > > Scott Fletcher wrote: > > > I seem to be having problem with sending the PDF document to t

Re: [PHP] header() function for displaying an opened PDF document.

2003-10-14 Thread Marek Kilimajer
Are you using sessions? Then you need session_cache_limiter('private_no_expire'); Scott Fletcher wrote: I seem to be having problem with sending the PDF document to the browser to be open on screen. I kept getting the error message, it say 'Windows cannot open this file'. Here's my sample scri

RE: [PHP] header() function for displaying an opened PDF document.

2003-10-13 Thread Bertrand Moulard
now that I'm rethinking of it, I solved the problem by using the brilliant python program tcpwatch, which logs all the http data going in and out your browser. Very easy to run and so handy (not only for this problem). Would find the url for dld if you want. cheers .b -Original Message-

RE: [PHP] header() function for displaying an opened PDF document.

2003-10-13 Thread Bertrand Moulard
Might not be connected at all, but I had a similar problem with pdf stored in a postgreSQL database as large object. The content type was set to pdf, but ie wouldn't open it. It turned up that it was because there was a CRLF at the end of one of my script, which spoiled the whole output. Pretty dum

Re: [PHP] header function problem

2003-06-06 Thread Daniel J. Rychlik
> To: <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 1:01 AM Subject: Re: [PHP] header function problem > On Thursday 05 June 2003 07:01, Daniel J. Rychlik wrote: > > Well, it works if I use the full path instead of relative So obviously > > its an apache permissions

Re: [PHP] header function problem

2003-06-05 Thread Jason Wong
On Thursday 05 June 2003 07:01, Daniel J. Rychlik wrote: > Well, it works if I use the full path instead of relative So obviously > its an apache permissions issue. It has nothing to do with apache. The specs require that the location is absolute. -- Jason Wong -> Gremlins Associates -> ww

Re: [PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
Well, it works if I use the full path instead of relative So obviously its an apache permissions issue. - Original Message - From: "Daniel J. Rychlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 5:36 PM Subject: [PHP] header function problem I am u

Re: [PHP] header function

2003-03-10 Thread Barry Gould
ch 10, 2003 4:26 PM Subject: Re: [PHP] header function > I'm starting to think this is a BUG. > > Can anyone else test this and confirm or contradict? > > Thanks, > Barry > > At 03:35 PM 3/7/2003, you wrote: > >I am having a hard time with the header("L

Re: [PHP] header function

2003-03-10 Thread CPT John W. Holmes
Use INCLUDE(), not virtual(). virtual() isn't supposed to be used with PHP files. ---John Holmes... - Original Message - From: "Barry Gould" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 4:26 PM Subject: Re: [PHP] header function &

Re: [PHP] header function

2003-03-10 Thread Barry Gould
I'm starting to think this is a BUG. Can anyone else test this and confirm or contradict? Thanks, Barry At 03:35 PM 3/7/2003, you wrote: I am having a hard time with the header("Location:") function inside an include file with PHP 4.3.1 (Linux, running as a module w/ Apache 1.3.27). At the VERY

Re: [PHP] header function

2003-03-10 Thread Barry Gould
I have session auto start on. Plus, like I said, it works fine if it's at the top of the page, not in the include file. Thanks, Barry At 05:19 PM 3/7/2003, Jim Lucas wrote: if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you are trying t

Re: [PHP] header function

2003-03-07 Thread Jim Lucas
if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you are trying to access a value stored in a session variable, you need to initialize the session first, then access the variable. Jim - Original Message - From: "Barry Gould" <[EMAI

Re: [PHP] header function

2002-11-09 Thread Ernest E Vogelsinger
At 20:47 09.11.2002, Donahue Ben said: [snip] >I am using the header function what i have is this: > >header("Location: >http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/".$relative_url > >$relative_url is a php file > >when i run this script wi

Re: [PHP] header function

2002-11-09 Thread Stephen
The file loading may be too long for PHP to recognize it or whatever. Try shortening it in some way. - Original Message - From: "Donahue Ben" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 09, 2002 2:47 PM Subject: [PHP] header function > I am using the header func

RE: [PHP] header() -- function failed to due caching.

2002-05-15 Thread Patrick Lynch
Hi Scott, If you are using IE, make sure that the browser checks for updates every visit to the page. (Tools->Internet Options->Settings). I am not sure that this setting observes Cache-Control, etc... Are you setting the Cache-Control header to Private and the expires header to a suitable time?

RE: [PHP] Header() function and redirect

2001-08-30 Thread Don Read
On 30-Aug-2001 Zhu George-CZZ010 wrote: > But I have to wait for the application to finish. The idea is: the > application will take the file, and convert it into PDF file (it takes more > than 30 seconds generally), then display the generated PDF file. > > I am just wondering if I can use "Hea

Re: [PHP] Header() function and redirect

2001-08-30 Thread
From: Zhu George-CZZ010 <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 11:27:41AM -0500 Message-ID: <[EMAIL PROTECTED]> Subject: RE: [PHP] Header() function and redirect > But I have to wait for the application to finish. The idea is: the application will >take the file, a

RE: [PHP] Header() function and redirect

2001-08-30 Thread Zhu George-CZZ010
page, then in that page, redirect to the PDF file. Thanks, George -Original Message- From: * R&zE: [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 11:19 AM To: Zhu George-CZZ010; [EMAIL PROTECTED] Subject: Re: [PHP] Header() function and redirect From: Zhu George-

Re: [PHP] Header() function and redirect

2001-08-30 Thread
From: Zhu George-CZZ010 <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 11:10:19AM -0500 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] Header() function and redirect > > I am using Apache and PHP. I encountered a redirect problem in PHP, and traced it >down, so, I generated a very short PHP p

Re: [PHP] header function

2001-08-21 Thread Christian Reiniger
On Tuesday 21 August 2001 16:53, Jay Paulson wrote: > I have a slight problem.. I'm running php 4.0.6 on RedHat 7.1 and I run > my script and it hit's: > > header("Location:index.php"); > > well the thing is once it hits that line in my script and just fails, > however i don't get any type of par

Re: [PHP] header function

2001-08-21 Thread Jay Paulson
exactly is going on. [Mon Aug 20 17:23:03 2001] [error] [client 64.132.13.114] File does not exist: /home/username/htdocs/admin/.php - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: "Jay Paulson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTEC

Re: [PHP] header function

2001-08-21 Thread Tyler Longren
Well, it's not a good idea to put something (like an echo) before a header()...even for testing because that will prevent the header() from working at all. You should have gotten an "All headers have been sent" or some similar error. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED]