Is there a "run" command in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Is there a "run" command in PHP?

Post 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!
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post 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();
}
Post Reply