in reply to Perl - webserver
There does not seem to be firewall modules on CPAN, but there is a module called Hook::Filter which builds a "firewall" around subroutines and has a rule-based set-up with the rules found in a configuration file. Again you can "steal" probably some techniques from this module.
Not being a PHP-person, I guess that you will somehow have to call the PHP interpreter with the PHP-file as an argument. It does seem possible to run a PHP program outside of a web-server: Stand-alone PHP.
Update: Some more info on how to use PHP "stand-alone" is in this article:PHP Standalone Scripts. If the PHP-interpreter is in your PATH it could be as simple as: my $return_code = system('php my_standalone_script.php');
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl - webserver
by aufflick (Deacon) on Apr 13, 2008 at 04:11 UTC | |
|
Re^2: Perl - webserver
by Anonymous Monk on Mar 26, 2008 at 10:00 UTC | |
by CountZero (Bishop) on Mar 27, 2008 at 17:49 UTC | |
by ikegami (Patriarch) on Mar 27, 2008 at 18:02 UTC |