The keyword you are looking for is ob_start() Or Output Buffering ! Check that out. On Wed, 10 Nov 2004 09:39:06 +0530, Zareef Ahmed <za@xxxxxxxx> wrote: > > Hi, > > Alas there is no any other way to redirect the page without sending > headers in PHP. > You may use javascript for this purpose. > > Well it is matter of programming practice. > We must do processing before presenting the content to users. > It will be helpful in many situations. > > So instead of doing > > 1.Draw header > 2. Draw middle bar upon user input and according to business logic. > 3. Draw footer > > We Must Use > 1. Make Business logic and process user input and do required task > such as redirection > 2. Store result of step 1 in any entities like variables. > 3. Draw Header > 4. Make Middle bar using set entities. > 5. Draw footer. > > This is just a overview of approach. You may need to process more things > along with middle bar, but it is good idea to do logical processing > before presentation. > > Zareef Ahmed > > -----Original Message----- > From: Victor C. [mailto:cao117@xxxxxxxxxxx] > Sent: Tuesday, November 09, 2004 9:37 PM > To: php-general@xxxxxxxxxxxxx > Subject: page redirect question > > Hi, > > Is there anyway to redirect php page other than using > HEADER("LOCATION:URL") ? > Header can only be called if nothing is written to HTML... Is there > anyway around it? > > Thanks, > > -- > > ------------------------------------------------------------------------ > -- > Zareef Ahmed :: A PHP develoepr in Delhi ( India ) > Homepage :: http://www.zasaifi.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- M.Saleh.E.G 97150-4779817 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php