Re: forward to a html file

From: Date: Sat, 22 Feb 2003 13:52:39 +0000
Subject: Re: forward to a html file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136623@lists.php.net to get a copy of this message
On Sat, 22 Feb 2003 15:25:36 +0300, you wrote: >I need forward a html file in my php. > >If I use include, it comes a part of .php result. In the navigation window >shows that myscript.php > >But I want to show that destination.html. Not absolutely sure what you're asking for, but I think you want myscript.php to redirect to destination.html? You need a Location header. header("Location: http://www.site.com/destination.html"); http://www.php.net/manual/en/function.header.php Note: headers have to be set /before/ any other text is sent, including blank lines. If this is impossible, use output buffering : http://www.php.net/manual/en/ref.outcontrol.php

« previous php.general (#136623) next »