Page 1 of 1

HELP: call other php script inside the php file?

Posted: Wed Sep 24, 2008 1:44 pm
by mapperkids
Hi,

I want to know the synax of how to call/execute other php inside the php file

Here is what i want to do.

$i=1
While ( $i <=100);}

$var= "test"
call script1.php
call script2.php

$i++;

}

So both script1.php and script2.php should run 100 times and also every will pass the value in $var to the script1 and script2.

Thanks!

Re: HELP: call other php script inside the php file?

Posted: Wed Sep 24, 2008 9:29 pm
by josh
include

Re: HELP: call other php script inside the php file?

Posted: Wed Sep 24, 2008 11:56 pm
by saran_tvmalai
USE the include

include ('script1.php');
include ('script2.php');

Re: HELP: call other php script inside the php file?

Posted: Fri Sep 26, 2008 10:11 am
by mapperkids
saran_tvmalai wrote:USE the include

include ('script1.php');
include ('script2.php');
Thanks, it works!!