Has anyone encountered a problem whereby using the Header("Location: blah")
function to redirect the client to another page, sometimes it comes up with
this;
-- snip --
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return ar
Here is my question.
I wrote a script, which gets parameters from db about document (location on
disc, hashed filename and original filename). Then script open this file a
send it to user.
I use this headers
Header("Content-Type: application/download\n");
Header("Content-Disposition: attachment;
I use PHP 4.06, Using Apache, and running under windows.
This code is tested and works using IE;
header ("Location: http://localhost/test/secure_1.php";);
exit;
Like the other message(s) said, you must NOT output anything before you send
a header. If you do however, you will get a ru
Make sure there is no sign before you start the file with 'http://www.php.net/manual/en/function.header.php for this (very common)
error.
Christoph
"Jukka Pakkanen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000b01c18fbc$71813000$[EMAIL PROTECTED]">news:000b01c18fbc$71813000$[EMAIL PROTECTED]...
try getting rid of the extra line between wrote in message
000b01c18fbc$71813000$[EMAIL PROTECTED]">news:000b01c18fbc$71813000$[EMAIL PROTECTED]...
The test.php file only has:
http://www.qnet.fi\r\n\n";);
exit();
?>
Result is a blank page, source code:
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
ge.
Cheers,
Fred Woolsey
-Original Message-
From: Jukka Pakkanen
To: Mike Flynn
Cc: [EMAIL PROTECTED]
Sent: 12/28/2001 11:26 AM
Subject: Re: [PHP-WIN] header() problem
The test.php file only has:
http://www.qnet.fi\r\n\n";);
exit();
?>
Result is a blank page, source code:
[!DOCTYP
What type of server are you running the program on? And is it properly
configured.
- Original Message -
From: "Jukka Pakkanen" <[EMAIL PROTECTED]>
To: "Mike Flynn" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 8:44 AM
S
The test.php file only has:
http://www.qnet.fi\r\n\n";);
exit();
?>
Result is a blank page, source code:
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"]
[HTML][HEAD]
[META http-equiv=Content-Type content="text/html; charset=windows-1252"][/HEAD]
[BODY][/BODY][/HTML]
The webser
At 05:44 PM 12/28/2001 +0200, Jukka Pakkanen wrote:
>Thanks Mike, but still no luck. Nothing happens. No errors, no redirects,
>no nothing :(
Hmmm.. have you tried just making a blank page with this code? If so, what
shows up in the browser? A blank page? View the source, what does it show?
Thanks Mike, but still no luck. Nothing happens. No errors, no redirects, no nothing :(
- Original Message -
From: "Mike Flynn" <[EMAIL PROTECTED]>
To: "Jukka Pakkanen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001
At 02:46 PM 12/28/2001 +0200, you wrote:
>Running NT4sp6a and PHP4.1.0.
>
>I try to redirect the browser to a new location [http://www.qnet.fi";); ?>], but nothing happens in the browser. There are no
>extra spaces, CR's, LF's or anything, and output_buffers are on in the
>php.ini.
>
>Any ideas??
Running NT4sp6a and PHP4.1.0.
I try to redirect the browser to a new location [http://www.qnet.fi";); ?>], but nothing happens in the browser. There are no
extra spaces, CR's, LF's or anything, and output_buffers are on in the
php.ini.
Any ideas??
I run in to this problem when trying to run som
12 matches
Mail list logo