Hi all, Here are the two SAPI apps I wrote recently to help me to use the PHP more productively.
The first is php_srv, and enables me to run the script as windows service, or as standard console application. It has the --install, --install-auto, --remove service management options, and --logfile, to enable redirecting stdout to some log file. The --parameters option is the php's command line. The second is basically the cli SAPI wrapped around Win GUI, that displays the output in win dialog (if enabled). It has couple of options, and is far from being finished, but offers the things like GUI, try icon, etc... For compilation of service SAPI you can use the php4ts_cli.dsp, delete the php_cli.c from the project, and add the php_srv.c. Same is for the gui SAPI, where you add the php_win.c, and php_win.rc. I'm using VS7.0 so didn't bother with adding .vcproj files. MT.
srv.zip
Description: Zip compressed data
win.zip
Description: Zip compressed data
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php