{"id":544,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=544"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"robin-hood-and-php","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=544","title":{"rendered":"Robin Hood and PHP"},"content":{"rendered":"<p>If you&#8217;re running the <a href=\"http:\/\/www.bebits.com\/app\/322\">Robin Hood<\/a> web server and want to work with <a href=\"http:\/\/www.php.net\/\">PHP<\/a>, 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&#8217;s how.<br \/>\nDownload <a href=\"http:\/\/www.bebits.com\/app\/566\">PHP for BeOS<\/a> and put the PHP binary in <code>~\/config\/bin<\/code>. Next, download Jonathan Perret&#8217;s <a href=\"http:\/\/www.benews.com\/infocus\/wrapper.zip\">CGI wrapper<\/a> for PHP. Install this in <code>~\/config\/bin<\/code> as well.<br \/>\nNow, 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:<\/p>\n<pre>\n&amp;lt;?php\necho \"Hello -- I'm a PHP script!\";\n?&amp;gt;\n<\/pre>\n<p>To see this script running on this Robin Hood web server, <a href=\"http:\/\/www.betips.net\/cgi-bin\/phptest.php\">click here<\/a>.<br \/>\nTo learn more about PHP and Robin Hood, read these In Focus articles by Seth Flaxman at BeNews:<br \/>\n<a href=\"http:\/\/www.benews.com\/story\/2914\">BeOS In Focus: PHP and RobinHood<\/a><br \/> <a href=\"http:\/\/www.benews.com\/story\/2920\">BeOS In Focus Update: Making PHP Work<\/a><br \/>\nNote that Stegemann and Stegemann&#8217;s web server <a href=\"http:\/\/www.bebits.com\/app\/224\">diner<\/a> comes with PHP capabilities built in, though some users have had difficulty getting it to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;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&#8217;s how. Download [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[10],"class_list":["post-544","post","type-post","status-publish","format-standard","hentry","tag-scripting"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=544"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}