php3-list | 199807
Date: 07/28/98
- Next message: Jouni Ahto: "Re: [PHP3] postgresql cursors and portals : help"
- Previous message: Cameron Just: "Re: [PHP3] Security"
- In reply to: Rasmus Lerdorf: "Re: [PHP3] Calling Another Page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
wow.......... oh ya!
.
Thank you Rasmus.
Anil
Rasmus Lerdorf wrote:
> > can I do this?
> >
> > create random number;
> >
> > if(myRandomNymber==1)
> > call script 1
> > elseif(MyRandomScript==2)
> > call script2
> > and so on.
> >
> > How do I call one script within another?
>
> Just use an include here.
>
> eg.
>
> if(myRandomNymber==1)
> include "script1.php3";
> elseif(MyRandomScript==2)
> include "script2.php3";
>
> Or simpler:
>
> include "script_".$myRandomNumber.".php3";
>
> -Rasmus
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Jouni Ahto: "Re: [PHP3] postgresql cursors and portals : help"
- Previous message: Cameron Just: "Re: [PHP3] Security"
- In reply to: Rasmus Lerdorf: "Re: [PHP3] Calling Another Page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

