Board index » delphi » PHP

PHP


2008-04-02 08:14:14 AM
delphi48
Is it possible to use the Indy HTTP Server with PHP?
And more importantly, are you allowed to distribute the PHP binaries
with a commercial application?
Thanks
Mark
 
 

Re:PHP

"Mark Smith" <XXXX@XXXXX.COM>writes
Quote
Is it possible to use the Indy HTTP Server with PHP?
Yes. PHP can be used as an external application. You can have your
TIdHTTPServer code spawn a new php.exe process, pipe the relevant input data
to it, read the response data from it, and then send that back to the
client.
Quote
are you allowed to distribute the PHP binaries with a commercial
application?
Yes. This is clearly stated in PHP's license:
us.php.net/license/3_01.txt
Gambit
 

Re:PHP

"Remy Lebeau (TeamB)" <XXXX@XXXXX.COM>writes
Quote

"Mark Smith" <XXXX@XXXXX.COM>writes
news:XXXX@XXXXX.COM...

>Is it possible to use the Indy HTTP Server with PHP?

Yes. PHP can be used as an external application. You can have your
TIdHTTPServer code spawn a new php.exe process, pipe the relevant input
data to it, read the response data from it, and then send that back to the
client.
Is there an example of this anywhere online? - I enquired about this before
but never really managed to find any sample sourc code...
 

Re:PHP

Jamie Dale wrote on 02/04/2008 :
Quote
Is there an example of this anywhere online? - I enquired about this before
but never really managed to find any sample sourc code...
Go to users.telenet.be/ws36637/ and download the idRunner
components. as far as I can see they do exacty what you are after use
an ISAPI or CGI dll from indyHTTPServer and they already support PHP
through CGI.
regards
Yannis.
--
Never interrupt your enemy when he is making a mistake.
- Napoleon Bonaparte (1769-1821)