slashchuck Posted April 11, 2007 Share Posted April 11, 2007 Why does this not work? <?php ......... switch($testid){ case '1': Gen1.php; break; case '2': Gen2.php; break; case '3': Gen3.php; break; } ......... ?> Link to comment https://forums.phpfreaks.com/topic/46609-solved-calling-a-script-from-within-a-script/ Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 i think you mustinclude() <?php ......... switch($testid){ case '1': include(Gen1.php); break; case '2': include(Gen2.php); break; case '3': include(Gen3.php); break; } ......... ?> Link to comment https://forums.phpfreaks.com/topic/46609-solved-calling-a-script-from-within-a-script/#findComment-226886 Share on other sites More sharing options...
per1os Posted April 11, 2007 Share Posted April 11, 2007 Due to not reading the manual, www.php.net/include <?php ......... switch($testid){ case '1': include('Gen1.php'); break; case '2': include('Gen2.php'); break; case '3': include('Gen3.php'); break; } ......... ?> Link to comment https://forums.phpfreaks.com/topic/46609-solved-calling-a-script-from-within-a-script/#findComment-226888 Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 oh i forgot the 's hehe.. Link to comment https://forums.phpfreaks.com/topic/46609-solved-calling-a-script-from-within-a-script/#findComment-226892 Share on other sites More sharing options...
slashchuck Posted April 11, 2007 Author Share Posted April 11, 2007 Thank you all. Link to comment https://forums.phpfreaks.com/topic/46609-solved-calling-a-script-from-within-a-script/#findComment-227233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.