Robin Hood and PHP

If you’re running the Robin Hood web server and want to work with PHP, be aware that the current version of Robin Hood does not natively support the filtering mechanism you need to execute PHP as a standard CGI. You can, however, create a CGI wrapper for PHP that works quite nicely. Here’s how.

Download PHP for BeOS and put the PHP binary in ~/config/bin. Next, download Jonathan Perret’s CGI wrapper for PHP. Install this in ~/config/bin as well.

Now, instead of making the first line of your PHP scripts the path to PHP, use the path to the wrapper, with the path to PHP as an argument to that. Therefore, the simplest possible PHP script would look like this: