Redirecting - PHP
This is a discussion on Redirecting - PHP ; Hey all,
Just curious as to what the best way is to move someone off your site, apart
from bringing up a picture of male pornography...
Seriously, I've tried using
header("Location: http://www.php.net/");
but it returns an error saying that the ...
-
Redirecting
Hey all,
Just curious as to what the best way is to move someone off your site, apart
from bringing up a picture of male pornography...
Seriously, I've tried using
header("Location: http://www.php.net/");
but it returns an error saying that the headers are already set.
The situation I'm in is as follows:
Need to send a user to http://www.examplesite.com/ from a PHP script in
http://forums.examplesite.com/
Thanks for the help
-
Re: Redirecting
Send head()ers before any html output (including spaces or newlines before
<?php)
--
Julio Nobrega.
Tô chegando:
http://www.inerciasensorial.com.br
"Liam Mackenzie" <phplist@operationenigma.com> wrote in message
news:006801c1ed9e$1fddf4a0$0400a8c0@enigma...
> Hey all,
>
> Just curious as to what the best way is to move someone off your site,
apart
> from bringing up a picture of male pornography...
>
> Seriously, I've tried using
> header("Location: http://www.php.net/");
> but it returns an error saying that the headers are already set.
>
> The situation I'm in is as follows:
>
> Need to send a user to http://www.examplesite.com/ from a PHP script in
> http://forums.examplesite.com/
>
>
> Thanks for the help
>
>
>
>
>
-
Re: [PHP] Redirecting
Since you haven't posted your code, let me see if I can divine it...
Nope...can't do it...my MindReader.exe vers 1.01 is on the blink.
POST YOUR CODE!!!!
----- Original Message -----
From: Liam MacKenzie <phplist@operationenigma.com>
To: PHP <php-general@lists.php.net>
Sent: Friday, April 26, 2002 10:46 PM
Subject: [PHP] Redirecting
Hey all,
Just curious as to what the best way is to move someone off your site, apart
from bringing up a picture of male pornography...
Seriously, I've tried using
header("Location: http://www.php.net/");
but it returns an error saying that the headers are already set.
The situation I'm in is as follows:
Need to send a user to http://www.examplesite.com/ from a PHP script in
http://forums.examplesite.com/
Thanks for the help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-
Re: [PHP] Re: Redirecting
On Saturday 27 April 2002 12:00, Julio Nobrega wrote:
> Send head()ers before any html output (including spaces or newlines
> before <?php)
IOW RTFM!
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Love tells us many things that are not so.
-- Krainian Proverb
*/
-
Re: [PHP] Redirecting
put before your html code
<?
ob_start();
?>
<HTML>...
this should work.
Liam MacKenzie a écrit :
> Hey all,
>
> Just curious as to what the best way is to move someone off your site, apart
> from bringing up a picture of male pornography...
>
> Seriously, I've tried using
> header("Location: http://www.php.net/");
> but it returns an error saying that the headers are already set.
>
> The situation I'm in is as follows:
>
> Need to send a user to http://www.examplesite.com/ from a PHP script in
> http://forums.examplesite.com/
>
> Thanks for the help
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Marius Ursache (3563 || 3494)
\|/ ____ \|/
"@'/ ,. \`@"
/_| \__/ |_\
\__U_/