Re: [PHP] Question regarding linking PHP Parser library into my private Http server



On Dec 30, 2007 7:57 PM, Richard Lynch <ceo@xxxxxxxxx> wrote:

On Sun, December 30, 2007 3:02 am, Talya Nevo wrote:
I am porting my software from Linux to µC/OS-II OS.
On Linux I ran the Boa Web server with PHP.
The µC/OS-II has a basic open source Http Server that does not support
PHP or CGI.

What I was able to do - is from the Http server, each time an http
request is received, call using 'System' function the PHP interpreter
program (like from cli) with input the requested page.
This seams to basically work but it is not efficient at all.

What I would like to do is to link the Http Server to the basic PHP
parser library and call the 'parse' function each time the server gets
an http request.

Is this possible?
Does anyone know how to do this - which library to link to, which
function to call, maybe an example.

Thanks for your help.

Talya Nevo
talya.nevo@xxxxxxxxxx

You could probably have a MUCH easier time and benefit the PHP
community a WHOLE lot more by looking at the Apache/CLI/Isapi API
implementations.


or maybe something more lean like lighttpd would be a bit easier.
(it supports php via cgi and optionally fastcgi)

-nathan


Relevant Pages

  • Re: [PHP] Question regarding linking PHP Parser library into my private Http server
    ... On Linux I ran the Boa Web server with PHP. ... The µC/OS-II has a basic open source Http Server that does not support PHP ...
    (php.general)
  • Re: [PHP] : Who is there ?
    ... about user conected on my http server. ... I've read somewhere stuffs about sessions with php but I can't found it ... >> Alex. ... > if you just want to see http connections use ...
    (alt.php)
  • Question regarding linking PHP Parser library into my private Http server
    ... On Linux I ran the Boa Web server with PHP. ... The µC/OS-II has a basic open source Http Server that does not support PHP or CGI. ... What I was able to do - is from the Http server, each time an http request is received, call using 'System' function the PHP interpreter program with input the requested page. ...
    (php.general)
  • Re: Script errors after 4.3.5
    ... I noticed in my Event Viewer I am getting errors ... >has not responded within the configured timeout period. ... The HTTP server is ... If it is PHP, would can I look for that may be ...
    (comp.lang.php)
  • Re: PHP script attack?
    ... your web server and ... and your PHP is patched. ... The script started from the URL '/thisdoesnotexistahaha.php' with parameters ... The HTTP server ...
    (microsoft.public.security)