RE: [PHP-DEV] Sent location header with port!
| From: | Unknown Sender | Date: | Thu, 11 Jan 2001 15:16:08 +0000 |
| Subject: | RE: [PHP-DEV] Sent location header with port! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-43782@lists.php.net to get a copy of this message | ||
This works fine for me...make absolutely sure that there is no whitespace
before your opening <?php tags. This includes any files you are
require()ing and include()ing.
<?php
header("Location: http://www.mysite.com:8080/index.php");
?>
Sean
-----Original Message-----
From: Johan Holst Nielsen [mailto:johan@christensen-co.dk]
Sent: Thursday, January 11, 2001 10:25 AM
To: php-dev@lists.php.net
Subject: [PHP-DEV] Sent location header with port!
Hi ppl
I have a problem with the header() function. I have to seen a header which
contain a port! My script looks like this:
<?
header("Location: http://domain.com:8080/file.php3");
?>
But it won't redirect! Anyway know a solution? Please help! Shall I define
the port antoher place, or is it impossible to send a header containing a
port?
With Best Regards
Johan Holst Nielsen