goman60 Posted July 2, 2021 Share Posted July 2, 2021 I am using Emiscripten and other compiler tools to create a front and backend for web assembly to make it easier to use. I need things like exec() and shell_exec() to use Emiscripten I believe. I am I mistaken, or is my endeavor doomed? Quote Link to comment Share on other sites More sharing options...
yashrs Posted July 2, 2021 Share Posted July 2, 2021 We don't allow exec and shell_exec for security reasons. However, if you have only one or two commands to run, you could use the cron jobs to run that. Please do note that there's a limit of 2 cron jobs per day. If your application requires it for continuous use then I am afraid it wouldn't work. 1 Quote Link to comment Share on other sites More sharing options...
goman60 Posted July 2, 2021 Author Share Posted July 2, 2021 Thanks for the idea! I might be able to use an external cron, my only problem is that I am making a package other developers can download and their server may not be the exact same. Quote Link to comment Share on other sites More sharing options...
wolstech Posted July 2, 2021 Share Posted July 2, 2021 Build the cron script so it outputs to a browser and can be run by simply hitting the URL of the script. This is a very common configuration that most major PHP programs support. PHP code can be written to be platform agnostic for the most part. 1 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.