NYCPHP Meetup

NYPHP.org

[nycphp-talk] automatic redirection of PHP script

tedd tedd at sperling.com
Thu Oct 25 10:03:38 EDT 2007


At 9:13 AM +0100 10/23/07, PaulCheung wrote:
>Hi
>
>I was wondering if anybody knows? I am sure that others must have 
>encountered this in the past. What I am trying to accomplish is a 
>conditional exit from the current script,  go to and execute another 
>script without any manual intervention. Using the following pseudo 
>code, I am fully aware it is not elegant but it serves to explain 
>what I want to accomplish.
>
>If $Cost  <  100 goto and execute script-a.php
>    else
>          if $Cost  >  1000 goto and execute script-b.php
>             else
>                   carry on;
>
>Normally I would be happy to supply real PHP coding but 
>unfortunately I do not know how to execute what I want to.
>
>Paul


Paul:

Please review -- example and code:

http://www.webbytedd.com/bb/php-run-php/

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the talk mailing list