Jump to content

Recommended Posts

Posted

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? 

Posted

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.

  • Thanks 1
Posted

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.

Posted

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.

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...