Re: passing control to a separate script
| From: | Stuart Dallas | Date: | Mon, 02 May 2011 01:28:38 +0000 |
| Subject: | Re: passing control to a separate script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312611@lists.php.net to get a copy of this message | ||
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/