aconite Posted April 3, 2007 Share Posted April 3, 2007 in my PHP file i want to run another php script if a particular if condition is true.how can i do that??? Link to comment https://forums.phpfreaks.com/topic/45385-running-another-php-script-from-one-php-file/ Share on other sites More sharing options...
jitesh Posted April 3, 2007 Share Posted April 3, 2007 if(true){ include('file1.php'); }else{ include('file2.php'); } Link to comment https://forums.phpfreaks.com/topic/45385-running-another-php-script-from-one-php-file/#findComment-220356 Share on other sites More sharing options...
neel_basu Posted April 3, 2007 Share Posted April 3, 2007 You Can Use it For Running another php Script from one if(true){ file_get_contents('http://yoursite.com/file1.php'); }else{ file_get_contents('http://yoursite.com/file2.php'); } Link to comment https://forums.phpfreaks.com/topic/45385-running-another-php-script-from-one-php-file/#findComment-220479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.