Re: branching to another php file

From: Date: Mon, 27 Nov 2000 20:58:41 +0000
Subject: Re: branching to another php file
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-4136@lists.php.net to get a copy of this message
if you want to push the user to a new page, use Location: Header("Location: www.yahoo.com"); This *must* appear before anything is written (with echo/print etc) to the page; as its a header :) Siggy ----- Original Message ----- From: "Gonzalo Vera" <gvz@eucalipto.net> To: "--" <051581324@doar.net> Cc: <051581324@doar.net> Sent: Tuesday, November 14, 2000 5:50 AM Subject: Re: [PHP-WIN] branching to another php file > By branching you mean you want to execute some other php script? You > can do that using require(). Require "inserts" the called script for > execution, so the result would be more or less that of "branching". > > If this is not so, please post some code. > > Gonzalo. > > > I need to branch (on condition) to another php file. > > I used : readfile("index.php") and it does the branch to > > "index.php" > > but it returns back to continue processing the first file. > > > How can I prevent returning to the first file ? > > > Assil > > > > -- > 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 > >

« previous php.windows (#4136) next »