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 Quote Link to comment Share on other sites More sharing options...
Dorky Posted October 11, 2009 Share Posted October 11, 2009 include() Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.