Hi Sujit,

You can try using PHP EXECUTE but it may not have the required modules required 
by the script.
http://livedoc.4d.com/4Dv15.4/help/Title/en/page2802.html

You mentioned running the PHP script through Apache and running it from the 
browser, but then you also mention CRON.
I assume that since CRON is working this means you have a working PHP 
interpreter that is accessible from the command line...
If your PHP interpreter has a fastCGI interface then you could use it as an 
external PHP Interpreter to 4D, and then use PHP EXECUTE.
http://kb.4d.com/assetid=76201
http://kb.4d.com/assetid=76202
http://kb.4d.com/assetid=76206

Otherwise, you could just call LAUNCH EXTERNAL PROCESS with the path to your 
PHP binary and the path to the PHP script.
For this, just determine the correct syntax that works from Terminal in a 
single line and then try that with LEP.

-Tim




**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to