Re: How to run one php app from another?
| From: | Gerry D | Date: | Sun, 13 Aug 2006 22:19:53 +0000 |
| Subject: | Re: How to run one php app from another? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240602@lists.php.net to get a copy of this message | ||
I don't know if you solved this already, but I use it to redirect to
different pages depending on whther the user is logged in or not.
Something like header("location:/page/?p=login"); works fine. You were
on the right track.
Gerry
On 6/15/06, tedd <tedd@sperling.com> wrote:
Hi gang: This seems like so obvious a question, I am reluctant to ask. In any event, I simply want my php application to run another, like so: switch (option) { case a: run a.php; exit; break; case b: run b.php; exit; break; case c: run c.php; exit; break; } I know that from within an application I can run another php application via a user click (.e., button), or from javascript event (onclick), or even from cron. But, what if you want to run another application from the results of a calculation inside your main application without a "user trigger". How do you do that? I have tried header("Location: http://www.example.com/"); ob_start(), ob_flush() and such, but I can't get anything to work. Is there a way? Thanks. tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php