Search found 6 matches
- Fri Sep 10, 2004 3:31 pm
- Forum: PHP - Code
- Topic: Modify HTTP-Header in PHP running as CGI
- Replies: 10
- Views: 899
- Fri Sep 10, 2004 3:29 pm
- Forum: PHP - Code
- Topic: Modify HTTP-Header in PHP running as CGI
- Replies: 10
- Views: 899
- Fri Sep 10, 2004 3:22 pm
- Forum: PHP - Code
- Topic: Modify HTTP-Header in PHP running as CGI
- Replies: 10
- Views: 899
- Fri Sep 10, 2004 3:03 pm
- Forum: PHP - Code
- Topic: Modify HTTP-Header in PHP running as CGI
- Replies: 10
- Views: 899
oh, sorry the output is here: http://www.tfh-berlin.de/~s19436/cgi-bin/loc.php
- 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");
?>What is the "shebang"?
- 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 ...