> -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
>
>
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");
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
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
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
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
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
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
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
--
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
--- 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);
>
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
--- 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
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
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
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
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-
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
>
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
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
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
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
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
&
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
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
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
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
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
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?
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
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
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-
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
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
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
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]
36 matches
Mail list logo