I need to run from the command line (PHP CLI) some files that were encrypted by Zend Guard, and php just closes as soon as it reaches the encoded file without any error message. Is it possible to execute PHP scripts that are encoded by Zend Guard from the command line?
More details
In the application I'm working on now, some tasks need to be run periodically. First, we implemented controllers for some URLs that are used only for tasks. Then we completed the cron job using wget on these pages. The problem is that some of these tasks require parameters to run. Using wget to execute a POST request does not work, because the first thing that Zend Guard does is assign a cookie and then redirect to the same URL. On the second request, since he is now in GET, all parameters have been lost.
Then we decided to go to the script command line to fix the problem. We really like this approach because it solves the problems that we had using the URL. First, it does not support an open Apache connection for a long period of time. In addition, it does not provide some internal logic for public URLs. As I said earlier, when we try to run these command-line scripts, nothing happens, the application just quits.
We use Ubuntu 12.04 LTS, PHP 5.4.25 and Apache 2.2.22. I made sure that the Zend Guard extension was loaded correctly on the command line. In addition, it works correctly when pages are accessible through a web browser.
If anyone can help me with this problem, it will be very appreciated. Thanks!
php apache zend-guard
SolarBear
source share