Search found 6 matches

by znum
Fri Sep 10, 2004 3:31 pm
Forum: PHP - Code
Topic: Modify HTTP-Header in PHP running as CGI
Replies: 10
Views: 899

could it be a problem that the cgi-server is using https instead of http?
by znum
Fri Sep 10, 2004 3:29 pm
Forum: PHP - Code
Topic: Modify HTTP-Header in PHP running as CGI
Replies: 10
Views: 899

no change :(
by znum
Fri Sep 10, 2004 3:22 pm
Forum: PHP - Code
Topic: Modify HTTP-Header in PHP running as CGI
Replies: 10
Views: 899

Okay. but this is only the Apache-Redirection to "https://cgi.tfh-berlin.de/~s19436/loc.php"... and there: headers: Date: Fri, 10 Sep 2004 20:22:06 GMT Server: Apache/1.3.26 (Linux/SuSE) mod_perl/1.27 mod_ssl/2.8.10 OpenSSL/0.9.6g Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Tran...
by znum
Fri Sep 10, 2004 3:03 pm
Forum: PHP - Code
Topic: Modify HTTP-Header in PHP running as CGI
Replies: 10
Views: 899

by znum
Fri Sep 10, 2004 3:02 pm
Forum: PHP - Code
Topic: Modify HTTP-Header in PHP running as CGI
Replies: 10
Views: 899

Code: Select all

#!/usr/bin/php 
<?php ob_start();
header("Content-type: text/html"); 
header("Location: http://server/goto.php");
?>
The output: http://www.tfh-berlin.de/~s19436/loc.php

What is the "shebang"?
by znum
Fri Sep 10, 2004 2:28 pm
Forum: PHP - Code
Topic: Modify HTTP-Header in PHP running as CGI
Replies: 10
Views: 899

Modify HTTP-Header in PHP running as CGI

Is it possible to use the header-Function to modify the HTTP-header with PHP running as CGI? So far I think it fails for me because my apache-webserver runs PHP as CGI and I have to use #!/usr/bin/php in the first line. And so (i think) the header-modification will not work because there is already ...