-Original Message-
From: H Rao [mailto:hydsd...@gmail.com]
Sent: 28 June 2011 04:40
I am trying to understand odd(different) behavior of the header
function
under two different environments.
Here is the code which I am trying to execute from two different
servers
?
header
On 06/28/2011 09:10 AM, H Rao wrote:
Hi,
I am trying to understand odd(different) behavior of the header function
under two different environments.
Here is the code which I am trying to execute from two different servers
?
header (Set-Cookie: c1=value1;path=/; domain=.domain.com);
header
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
On Mon, 2010-03-01 at 12:14 +0100, Kim Madsen wrote:
Ashley Sheridan wrote on 01/03/2010 07:13:
The HTTP header doesn't treat quoteation marks in the same way that PHP
does. It needs double quote marks to function correctly.
How do you mean? And do you have a link to this information?
@lists.php.net
Subject: Re: [PHP] Header function
On 27 February 2010 04:32, Nick allan nal...@wdev.net wrote:
Hi all
Has anyone got any ideas why the following isn't giving me correct filename
in the ie save dialogue
header('Content-Type: application/msword');
header('Content-Disposition
On 27 February 2010 04:32, Nick allan nal...@wdev.net wrote:
Hi all
Has anyone got any ideas why the following isn't giving me correct filename
in the ie save dialogue
header('Content-Type: application/msword');
header('Content-Disposition: attachment; filename=PurchaseReq.doc');
I
');
header(Content-Disposition: attachment; filename=PurchaseReq.doc);
-Original Message-
From: Richard Quadling [mailto:rquadl...@googlemail.com]
Sent: Saturday, 27 February 2010 8:45 PM
To: Nick allan
Cc: php-general@lists.php.net
Subject: Re: [PHP] Header function
On 27 February 2010 04:32
On 26 February 2010 06:49, Nick allan nal...@wdev.net wrote:
Hi all
The situation is as follows
I've read some data in from a couple of files into a string variable, made
some changes to it and want to send the contents of the string out to the
browser as a word document.
My code
output the html you want to send afterwards first,
then either put a link to another script that outputs the word file,
or have an auto-launch ajax routine (i recommend jquery.com for ajax)
do it automatically.
On Fri, Feb 26, 2010 at 7:49 AM, Nick allan nal...@wdev.net wrote:
Hi all
The
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 you
--- 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);
I'm kinda
?php
ob_start();
$dom = $_SERVER['SERVER_NAME'];
writeMessage($id) or die('cannot write' . $id);
header('Location: http://' . $dom . '/cp/ad/ad_details.php?id=' . $id);
exit();
ob_end_flush();
?
--
Jon Kriek
www.phpfreaks.com
www.jonkriek.com
--
PHP General Mailing List
--- 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
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
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 the browser
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 data
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
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-
]
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 issue.
It has nothing to do with apache
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 using
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 -
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
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
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
: [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
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 [EMAIL
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 function
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 with this
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?
Original message
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
, then in
that page, redirect to the PDF file.
Thanks,
George
-Original Message-
From: * RzE: [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:19 AM
To: Zhu George-CZZ010; [EMAIL PROTECTED]
Subject: Re: [PHP] Header() function and redirect
Original message
From: Zhu George-CZZ010
Original message
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, and convert
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 Header()
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]
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 PROTECTED]
Sent: Tuesday, August 21, 2001 9:54 AM
Subject: Re: [PHP] header function
Well, it's not a good idea to put
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 parse error
36 matches
Mail list logo