Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Calling Another Page From: Anil Amarakoon (anil <email protected>)
Date: 07/28/98

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