header, also stumped
| From: | Bart | Date: | Wed, 10 Dec 2003 15:34:31 +0000 |
| Subject: | header, also stumped | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172338@lists.php.net to get a copy of this message | ||
Hello,
I've got the following header-problems. How can I get this to work:
header("Location: h--p://user:pass@url.redirect/securedir/");
I have a directory with password-protection to wich I want to redirect
without the login-popup showing...
I've tried a lot but the popup keeps showing.
Does anyone have any ideas?
Regards,
Bart
----!>
-----Oorspronkelijk bericht-----
Van: Jon Kriek [mailto:kriek@phpfreaks.com]
Verzonden: woensdag 10 december 2003 1:15
Aan: php-general@lists.php.net
Onderwerp: Re: [PHP] header function, I'm stumped
<?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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php