Re: passing control to a separate script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, 2 May 2011 at 02:17, Jim Giner wrote:
I have a large script that does a certain function for me. I have a second 
> script that gets called and does its thing and when I'm done with it I'd 
> like to pass control to the first script. I don't need this 'included' in 
> my second script - I just want to pass control to it and let it take over 
> again.
> 
> Is this do-able?

To clarify, you have something like this...

one.php
---
echo 'do one thing';
// pass control to two.php
echo 'do another thing';
---

two.php
---
echo 'do something else';
// pass control back to one.php
---

If that's correct then simply include two.php from one.php, like so...

one.php
---
echo 'do one thing';
include 'two.php';
echo 'do another thing';
---

If not then I've misunderstood what you're after. Can you give us an example?

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux