You are here: Re: One script passing control to the other? « PHP Programming Language « IT news, forums, messages
Re: One script passing control to the other?

Posted by Hendri Kurniawan on 01/05/07 23:19

Road on ob_start, ob_flush, ob_clean..... and ob related function.
I often redirect my script as well, but I do it simply by including that
file.

Example:
if(!@statement a) {
include('b.php');
exit();
}

PS: BTW the @ sign is to suppress the error msg. And bare in mind that
this is a simple
example. There are more better way to handle error.

Hendri Kurniawan

Pawel Halastra FrT wrote:
> Elo,
> I'm having a terrible trouble with a simple, as I think, issue. I need
> to stop my script in the middle of proccesing, and, simultanously, start
> a new script. The idea is not to sent any output to web browser before
> the second script is done. Typical scenario should goes like this:
> - script a.php ends its execution with some error, instead of sending
> its output to the browser, a.php passes control to b.php
> - output is being cleared, script b.php renders it from scratch, then
> sends back to the browser
>
> Is it possible (like in ASP.NET lets say - Server.Redirect())?
>
> Many thanks for help!
>
> --
> Pawel Halastra 'FrT'

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация