shericn Posted October 11, 2009 Share Posted October 11, 2009 Hi, I'm working on a php script. I would like this script to call another script and not wait for the other script to finish executing. For example, if my script is like this, <?php print "Data Written"; require("otherscript.php"); ?> I want this script to finish its execution right after calling "otherscript.php" no matter if "otherscript.php" is successful or not. However, as of now, this script would wait until "otherscript.php" is finished. Is there a way to go around that? Thanks. -shericn Link to comment https://forums.phpfreaks.com/topic/177340-php-script-that-triggers-another-script-to-run/ Share on other sites More sharing options...
Dorky Posted October 11, 2009 Share Posted October 11, 2009 include() Link to comment https://forums.phpfreaks.com/topic/177340-php-script-that-triggers-another-script-to-run/#findComment-935040 Share on other sites More sharing options...
shericn Posted October 12, 2009 Author Share Posted October 12, 2009 Hi, I read about include() before, but it appears that the only difference between include() and require() is that include() does not throw error messages. However, what I want is to make it so that after I call include() another php script, the current php script exits right away without waiting for the include() file to finish its execution (no matter how long that will take). Is there a way to do that? Thanks. -shericn Link to comment https://forums.phpfreaks.com/topic/177340-php-script-that-triggers-another-script-to-run/#findComment-935224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.