So happens that I am writing a PHP front-end for SPASM. (if you visit Omnimaga or Revsoft, you had noticed)
I got it coded and tested under Windows (using XAMPP and I am going to test on Linux sometime but that is a different issue)
The only problem is if SPASM process never ends (some bug or macro that loops forever) the script will never echo content and worse a spasm process is still running in the server. This can be disastrous, how many times a server needs normally reboots?
Basically I can't use the system(), exec(), passthru(), shell_exec() and popen() functions.
So proc_open() seems the way to go but the only problem is that I can't get SPASM working right and it doesn't output anything.
See the download and try to fix the code, say what is wrong or an alternative.
The code relates to the code counter using SPASM. Some docs and miscellaneous stuff is provided.
Download OnlineAssembler source code
I had enough unfruitful time lost before calling for help.
I got it coded and tested under Windows (using XAMPP and I am going to test on Linux sometime but that is a different issue)
The only problem is if SPASM process never ends (some bug or macro that loops forever) the script will never echo content and worse a spasm process is still running in the server. This can be disastrous, how many times a server needs normally reboots?
Basically I can't use the system(), exec(), passthru(), shell_exec() and popen() functions.
So proc_open() seems the way to go but the only problem is that I can't get SPASM working right and it doesn't output anything.
See the download and try to fix the code, say what is wrong or an alternative.
The code relates to the code counter using SPASM. Some docs and miscellaneous stuff is provided.
Download OnlineAssembler source code
I had enough unfruitful time lost before calling for help.