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!
HELP: call other php script inside the php file?
Moderator: General Moderators
-
mapperkids
- Forum Newbie
- Posts: 15
- Joined: Mon Feb 11, 2008 8:53 pm
-
saran_tvmalai
- Forum Newbie
- Posts: 5
- Joined: Fri Sep 19, 2008 7:42 am
Re: HELP: call other php script inside the php file?
USE the include
include ('script1.php');
include ('script2.php');
include ('script1.php');
include ('script2.php');
-
mapperkids
- Forum Newbie
- Posts: 15
- Joined: Mon Feb 11, 2008 8:53 pm
Re: HELP: call other php script inside the php file?
Thanks, it works!!saran_tvmalai wrote:USE the include
include ('script1.php');
include ('script2.php');