Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/hessianphp/htdocs/pmwiki.php on line 242

Warning: Cannot modify header information - headers already sent by (output started at /home/project-web/hessianphp/htdocs/pmwiki.php:242) in /home/project-web/hessianphp/htdocs/pmwiki.php on line 727
HessianPHP | UserGuide / Using HessianPHP clients from the command line
Recent Changes - Search:

Documents

Community

Related Projects

Powered by PmWiki

Using HessianPHP clients from the command line

HessianPHP clients don't rely on the web server or any external dependency beyond the 'overload' extension which is enabled by default in newer PHP versions. Therefore it is safe to use HessianPHP clients from command line scripts, capture the results and process them. This is an example batch file (Windows .bat) that executes a HessianPHP enabled script:

path = %path%C:\php\cli
php -f testCmd.php
pause

For example, scripts can be used as scheduled tasks or cron jobs to perform daily updates reading data from remote services and such. This has been tested in Windows XP and 2003 machines.

On the other hand, HessianPHP services require the use of a web server and they cannot be used from the command line.


Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/hessianphp/htdocs/pmwiki.php(461) : regexp code on line 1
Edit - History - Print - Recent Changes - Search
Page last modified on January 03, 2006, at 04:03 AM

Warning: fopen(wiki.d/.flock): failed to open stream: Permission denied in /home/project-web/hessianphp/htdocs/pmwiki.php on line 355

PmWiki can't process your request

Cannot acquire lockfile

We are sorry for any inconvenience.