[PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread Steve Francisco
Hi, as an experiment I have a simple Java based server that listens on port 80 and can serve files just fine. I'd like to extend it to support PHP but am looking for guidance on how to do that. Can someone point me to instructions? My first attempt was to just call the php.exe command line

Re: [PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread Robert Cummings
On Fri, 2007-08-24 at 11:08 -0400, Steve Francisco wrote: Hi, as an experiment I have a simple Java based server that listens on port 80 and can serve files just fine. I'd like to extend it to support PHP but am looking for guidance on how to do that. Can someone point me to instructions?

Re: [PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread Mikko Koppanen
On 8/24/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-24 at 11:08 -0400, Steve Francisco wrote: Hi, as an experiment I have a simple Java based server that listens on port 80 and can serve files just fine. I'd like to extend it to support PHP but am looking for guidance on

Re: [PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread Daniel Brown
On 8/24/07, Steve Francisco [EMAIL PROTECTED] wrote: [snip!] If the command line doesn't have a way to cause $_GET to be populated, then what other way of invoking PHP could I use? -- Steve Steve, You'd need to transpose the $_GET variables from the request to $argv variables via the

Re: [PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread Steve Francisco
Daniel Brown wrote: On 8/24/07, Steve Francisco [EMAIL PROTECTED] wrote: [snip!] If the command line doesn't have a way to cause $_GET to be populated, then what other way of invoking PHP could I use? -- Steve Steve, You'd need to transpose the $_GET variables from the request to

Re: [PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread Daniel Brown
On 8/24/07, Steve Francisco [EMAIL PROTECTED] wrote: [snip!] Thanks Daniel, I can certainly do that in Java without much trouble, however I was hoping to avoid needing to do things in each php file to convert argv into $_GET. I want to be able to serve standard PHP without modifying each one.

Re: [PHP-DEV] How to integrate PHP with my homegrown server

2007-08-24 Thread BuildSmart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 24, 2007, at 11:22:14, Robert Cummings wrote: On Fri, 2007-08-24 at 11:08 -0400, Steve Francisco wrote: Hi, as an experiment I have a simple Java based server that listens on port 80 and can serve files just fine. I'd like to extend it