Page 1 of 1

Is there a "run" command in PHP?

Posted: Fri May 03, 2002 4:33 pm
by Jim
Is there any sort of command that will run a script without the print() or echo command?

For instance,

if($this == true) {
"some code to run the rest of the script"
}

Thanks!

Posted: Fri May 03, 2002 5:14 pm
by hob_goblin
i suppose you could put the whole script in a function... and then call it

Code: Select all

if($var){
require('wherethescriptis.php');
thefunctionsname();
}