|
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]
|