Thread View: borland.public.cppbuilder.internet.web
7 messages
7 total messages
Started by Ulli
Tue, 24 May 2005 07:52
PHP5 with TidHTTPServer
Author: Ulli
Date: Tue, 24 May 2005 07:52
Date: Tue, 24 May 2005 07:52
5 lines
969 bytes
969 bytes
What about using PHP5 with TidHTTPServer, is there something I have to care abbout? Thanks Ulli
Re: PHP5 with TidHTTPServer
Author: Hans Galema
Date: Tue, 24 May 2005 13:04
Date: Tue, 24 May 2005 13:04
15 lines
1432 bytes
1432 bytes
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.
Re: PHP5 with TidHTTPServer
Author: Ulli
Date: Wed, 25 May 2005 16:44
Date: Wed, 25 May 2005 16:44
25 lines
1581 bytes
1581 bytes
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@notused.nl>: > 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.
Re: PHP5 with TidHTTPServer
Author: SD
Date: Thu, 26 May 2005 07:09
Date: Thu, 26 May 2005 07:09
10 lines
1299 bytes
1299 bytes
> 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:\
Re: PHP5 with TidHTTPServer
Author: Hans Galema
Date: Thu, 26 May 2005 18:26
Date: Thu, 26 May 2005 18:26
16 lines
1593 bytes
1593 bytes
SD wrote: > 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 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.
Re: PHP5 with TidHTTPServer
Author: SD
Date: Fri, 27 May 2005 11:35
Date: Fri, 27 May 2005 11:35
20 lines
1829 bytes
1829 bytes
"Hans Galema" wrote: > 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.
Re: PHP5 with TidHTTPServer
Author: Hans Galema
Date: Sat, 28 May 2005 08:59
Date: Sat, 28 May 2005 08:59
17 lines
1579 bytes
1579 bytes
SD wrote: > 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads