PHP site scheduling Java execution? -


I am trying to start by adding my (slightly limited) PHP experience to my (better) Java experience. Where I have permission to upload Java source files to the server, the server then executes Javak to compile it.

Then, at a specified time (specify on upload) I need to run that server once, which will generate some database information to display the PHP site.

To illustrate my current programming capabilities - I have created many desktop Java programs, and are confident in 'Pure Java', but so far only a few PHP projects (including using the CodeIgniter Framework) Only run.

My motivation in the form of inspiration for PHP is because I know that it is very fast, light and I will be able to show the requirement very easily with its results (simple DB readout). Ideally, the technology used should be able to grow on a local host (such as WAMP, Tomcat etc ..)

Is there any advice that you can use to reduce the difference Should consider, and what resources can help in using that technique? I have noticed something, but it is difficult to find the documentation to help me get what I need.

There are many ways to approach this and you only have to summarize in the same way I have not provided enough details, so I will offer some ... compiling Java source may take a very long time for a normal web request, so my recommendation is PHP scripts that accept Java source files to run a background command The source f Compiles the Ilon and logs its progress to a database or log file. In this way, you can redirect the user to a page that says, "Please wait, your source is being compiled" and use Ajax to check for updated progress every few seconds if This is the route you want to see.

For each uploaded file for PHP, just create an id in a database and the source file can be more beneficial to call "to move to incoming" directory. From there, a cron job that runs every time can scan the database for incoming directory or source files, compile it, and can be done while updating the database.

If you want one of these cases, you can compile it in any language and Java.


Comments