goman60 Posted July 2, 2021 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?
yashrs Posted July 2, 2021 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
goman60 Posted July 2, 2021 Author 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.
wolstech Posted July 2, 2021 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now