BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PHP5 with TidHTTPServer

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Ulli
Guest





PostPosted: Tue May 24, 2005 7:52 am    Post subject: PHP5 with TidHTTPServer Reply with quote



What about using PHP5 with TidHTTPServer, is there something I have to
care abbout?

Thanks
Ulli
Back to top
Hans Galema
Guest





PostPosted: Tue May 24, 2005 1:04 pm    Post subject: Re: PHP5 with TidHTTPServer Reply with quote



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





PostPosted: Wed May 25, 2005 4:44 pm    Post subject: Re: PHP5 with TidHTTPServer Reply with quote



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





PostPosted: Thu May 26, 2005 7:09 am    Post subject: Re: PHP5 with TidHTTPServer Reply with quote

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





PostPosted: Thu May 26, 2005 6:26 pm    Post subject: Re: PHP5 with TidHTTPServer Reply with quote

SD wrote:

Quote:
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.

Back to top
SD
Guest





PostPosted: Fri May 27, 2005 11:35 am    Post subject: Re: PHP5 with TidHTTPServer Reply with quote

"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





PostPosted: Sat May 28, 2005 8:59 am    Post subject: Re: PHP5 with TidHTTPServer Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.