| View previous topic :: View next topic |
| Author |
Message |
Ulli Guest
|
Posted: Tue May 24, 2005 7:52 am Post subject: PHP5 with TidHTTPServer |
|
|
What about using PHP5 with TidHTTPServer, is there something I have to
care abbout?
Thanks
Ulli
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Tue May 24, 2005 1:04 pm Post subject: Re: PHP5 with TidHTTPServer |
|
|
Ulli wrote:
| Quote: | What about using PHP5 with TidHTTPServer, is there something I have to
care abbout?
|
Maybe. PHP5 depends on the webserver for registering globals.
See php.ini: register_globals
I saw differences using Xitami and Apache.
So just compare how your php scripts behave under TidHTTPServer
and Apache. Then you can tell yourself.
Or did you see already something that did not work ?
Hans.
|
|
| Back to top |
|
 |
Ulli Guest
|
Posted: Wed May 25, 2005 4:44 pm Post subject: Re: PHP5 with TidHTTPServer |
|
|
Thanks, I just asked if there's any chance to do. Now I will start.
Ulli
Am Tue, 24 May 2005 15:04:00 +0200 schrieb Hans Galema
<notused (AT) notused (DOT) nl>:
| Quote: | Ulli wrote:
What about using PHP5 with TidHTTPServer, is there something I have to
care abbout?
Maybe. PHP5 depends on the webserver for registering globals.
See php.ini: register_globals
I saw differences using Xitami and Apache.
So just compare how your php scripts behave under TidHTTPServer
and Apache. Then you can tell yourself.
Or did you see already something that did not work ?
Hans.
|
|
|
| Back to top |
|
 |
SD Guest
|
Posted: Thu May 26, 2005 7:09 am Post subject: Re: PHP5 with TidHTTPServer |
|
|
| Quote: | What about using PHP5 with TidHTTPServer, is there something I have to
care abbout?
|
I've already done the same thing usign TidHTTPServer and PHP5 cgi.
All work very well and fine for me.
You can watch my code at:
http://www.open-shadow.org/files/helpengine.zip
Run this from C: or D:
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Thu May 26, 2005 6:26 pm Post subject: Re: PHP5 with TidHTTPServer |
|
|
SD wrote:
That program works like a charm. That is beautifull code that
you posted. You redirect stdin and out and use CreateProcess to
run php-win.exe. Nothing more to do if one planned to do so ...
Can I conclude that TIdHTTPServer does not redirect and execute
automatically if an exe in the cgi-bin is the URL ?
Hans.
|
|
| Back to top |
|
 |
SD Guest
|
Posted: Fri May 27, 2005 11:35 am Post subject: Re: PHP5 with TidHTTPServer |
|
|
"Hans Galema" wrote:
| Quote: | Can I conclude that TIdHTTPServer does not redirect and execute
automatically if an exe in the cgi-bin is the URL ?
|
Yes, TidHTTPServer automatically don't run nothing.
If you would to run a CGI-BIN you have to call it with CreateProcess.
I've redirected the STDIN-STOUT because in my system all
work with Streams and never with real files.
The contents of my web pages are all zipped and crypted in a
help.lib file, then my WebServer extract desired file (in Stream format)
and pass it to PHP, capture the output with STDOUT and put the
result in the Response Stream output of TidHTTPServer.
In the previus link I've removed the procedure:
ZipCryptFile -> Decrypt ->Unzip -> extract file in a stream and
I directly load a file in the stream only to simplify the example for you.
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Sat May 28, 2005 8:59 am Post subject: Re: PHP5 with TidHTTPServer |
|
|
SD wrote:
| Quote: | The contents of my web pages are all zipped and crypted in a
help.lib file, then my WebServer extract desired file (in Stream format)
and pass it to PHP, capture the output with STDOUT and put the
result in the Response Stream output of TidHTTPServer.
In the previus link I've removed the procedure:
ZipCryptFile -> Decrypt ->Unzip -> extract file in a stream and
I directly load a file in the stream only to simplify the example for you.
|
Well that makes your project even nicer.
I enjoyed it.
Hans.
|
|
| Back to top |
|
 |
|