AW: [PHP-WIN] How can i redirect a php file?
| From: | Michael Rudel | Date: | Tue, 10 Oct 2000 14:19:06 +0000 |
| Subject: | AW: [PHP-WIN] How can i redirect a php file? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3102@lists.php.net to get a copy of this message | ||
Yeah, you can do that, but if you have any Errors (== HTML-Output) it will
fail
(is _very_ Ok for debugging, but in final Application ?!)
Just look my previous mail =8)
Greetinx,
Mike
(Germany)
-----Ursprüngliche Nachricht-----
Von: Andy Hoffman [mailto:andy.hoffman@bms.com]
Gesendet: Dienstag, 10. Oktober 2000 16:19
An: Php-List
Betreff: Re: [PHP-WIN] How can i redirect a php file?
Jorge Nishikuni wrote:
> I need how to redirect a php file from other php file, not using links
> either Forms embedded in php file.
> I know tod do in asp file (Response.Redirect("page.php3")) but in php ???
At the top of a php file - presumably after you've done some database
updating (or whatever) and BEFORE you've output any html content (that's
important), you could call the header function to specifiy a different
location header...
<?php
header("Location: newfile.php\n\n");
?>
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net