Re: using mySQL to communicate between PHP and Rev CGI Deamon

2007-12-10 Thread Alex Shaw
Hi David I would recommend checking out: http://www2.sahores-conseil.com/insead/index_en.html And of course: http://www.andregarzia.com/RevOnRockets/index.html I've had great success running rev daemons on in-house and on public webhosts from using a combination of the above methods. regards

using mySQL to communicate between PHP and Rev CGI Deamon

2007-12-10 Thread David Beck
Has anybody tried to use a database backend such as mySQL as an intermediary between a frontend like php and a Rev application running as a backend deamon? The idea would be to have a php script insert "requests" into a mySQL database, and then have the Rev deamon constantly querying that dat

Re: More on php and Rev cgi

2006-11-07 Thread Pierre Sahores
Hello Jacqueline, Arrays are very usefull/powerfull and not too difficult to investigate under PHP. PHP => 4.3 and PHP 5 are both working friendly with Rev. Have Fun ;-) Kind Regards, Pierre Le 7 nov. 06 à 18:04, J. Landman Gay a écrit : Pierre Sahores wrote: > Hi Jacque, > > If you can

Re: More on php and Rev cgi

2006-11-07 Thread J. Landman Gay
Pierre Sahores wrote: > Hi Jacque, > > If you can send me both the php and cgi components of the stuff to get > up together, il will try to do them good friends ;-) That's a lovely idiom -- and you are kind as always. But we've had success! It now works. The problem was simple, as it turns out.

Re: More on php and Rev cgi

2006-11-06 Thread Pierre Sahores
Hi Jacque, If you can send me both the php and cgi components of the stuff to get up together, il will try to do them good friends ;-) Kind Regards, Pierre PS : inbetwin other things, PHP is very usefull to bind Revolution via TCP/UDP sockets and it's always the way i choose for my own.

Re: More on php and Rev cgi

2006-11-06 Thread J. Landman Gay
Stephen Barncard wrote: Actually I think at minimum a php page needs that. Thanks, I'll try adding that back in. The only difference between that CGI's return values and mine is that mine does not include a "content-type" header. We aren't writing to a web server so I didn't think that w

Re: More on php and Rev cgi

2006-11-06 Thread J. Landman Gay
John Craig wrote: Check out the following; http://uk.php.net/manual/en/ref.exec.php http://uk.php.net/manual/en/function.exec.php exec("stuff.cgi", $results); will return an array of lines of output from your script. Hop this helps - I'll need to try some rev cgi stuff - sounds good. This lo

Re: More on php and Rev cgi

2006-11-06 Thread J. Landman Gay
Brian Yennie wrote: Jacque, How are you calling the Rev CGI from PHP? Well, not me, but the other guy. I'm a complete php idiot. This is what he sent me in an email for testing the "echo.cgi" standard MC test cgi: '; echo 'Results:---'; echo exec($comma

Re: More on php and Rev cgi

2006-11-06 Thread John Craig
Check out the following; http://uk.php.net/manual/en/ref.exec.php http://uk.php.net/manual/en/function.exec.php exec("stuff.cgi", $results); will return an array of lines of output from your script. Hop this helps - I'll need to try some rev cgi stuff - sounds good. JC You can call your CGI

Re: More on php and Rev cgi

2006-11-06 Thread Brian Yennie
Jacque, How are you calling the Rev CGI from PHP? I'm still trying to interface with someone's php code using a Rev CGI. The php code is calling the CGI and passing some parameters. My CGI can read those parameters by accessing the globals $0, $1,etc. Then it does some stuff and writes a st

Re: More on php and Rev cgi

2006-11-06 Thread Stephen Barncard
Actually I think at minimum a php page needs that. The only difference between that CGI's return values and mine is that mine does not include a "content-type" header. We aren't writing to a web server so I didn't think that would be important. Is it? -- Jacqueline Landman Gay |

More on php and Rev cgi

2006-11-06 Thread J. Landman Gay
I'm still trying to interface with someone's php code using a Rev CGI. The php code is calling the CGI and passing some parameters. My CGI can read those parameters by accessing the globals $0,$1,etc. Then it does some stuff and writes a string to stdout. The problem we are having is that the

Re: PHP and Rev CGI

2006-10-24 Thread J. Landman Gay
David Bovill wrote: Jaque take a look at my post - I did a few test on my server mixing rev cgi"s and php: http://groups.google.com/group/runrev/browse_thread/thread/8292c3dc6328c711/e4d4d07a1d82a30b?lnk=gst&q=CGI&rnum=6#e4d4d07a1d82a30b I got both Server Side Includes and exec working...

Re: PHP and Rev CGI

2006-10-24 Thread David Bovill
Jaque take a look at my post - I did a few test on my server mixing rev cgi"s and php: http://groups.google.com/group/runrev/browse_thread/thread/8292c3dc6328c711/e4d4d07a1d82a30b?lnk=gst&q=CGI&rnum=6#e4d4d07a1d82a30b I got both Server Side Includes and exec working... _

Re: PHP and Rev CGI

2006-10-24 Thread J. Landman Gay
jbv wrote: > I did that on a limited scale. > > when I need to call php from Rev cgi I use get shell(), > and when I need to call a Rev cgi script from php I use > exec(). We'll need the second thing. When you call exec(), does the return data that is written to stndout automatically get sent ba

Re: PHP and Rev CGI

2006-10-24 Thread Sivakatirswami
J. Landman Gay wrote: I have a Revolution CGI that someone wants to use on their server, which is managed by some php scripts. I know nothing about php. Is it possible for php to call the Rev cgi and get the response back? Both processes will be running on the same server. Any pointers or refer

Re: PHP and Rev CGI

2006-10-23 Thread jbv
I did that on a limited scale. when I need to call php from Rev cgi I use get shell(), and when I need to call a Rev cgi script from php I use exec(). JB > I have a Revolution CGI that someone wants to use on their server, which > is managed by some php scripts. I know nothing about php. Is it p

Re: PHP and Rev CGI

2006-10-23 Thread Brian Yennie
Jacque, A couple of quick thoughts: 1) PHP has a few commands - exec(), system() and passthru() which do similar things in terms of calling an external program. Documentation on php.net is quite good - just browse there and type in the command name in the search box. 2) If the Rev proces

PHP and Rev CGI

2006-10-23 Thread J. Landman Gay
I have a Revolution CGI that someone wants to use on their server, which is managed by some php scripts. I know nothing about php. Is it possible for php to call the Rev cgi and get the response back? Both processes will be running on the same server. Any pointers or reference URLs on how to do

Re: PHP and Rev cgi

2005-10-06 Thread jbv
Dave, it works with $1 and $2. $0 actually returns the path of the cgi script. Thanks too much ! JB > On 6 Oct 2005, at 10:40, jbv wrote: > > > Hi list, > > > > I'm trying to launch a Rev cgi script from a PHP script. > > > > I'm using the following line : > > > > exec("/home/httpd/html/c

Re: PHP and Rev cgi

2005-10-06 Thread Dave Cragg
On 6 Oct 2005, at 10:40, jbv wrote: Hi list, I'm trying to launch a Rev cgi script from a PHP script. I'm using the following line : exec("/home/httpd/html/cgi-bin/./myScript.cgi 0 $caddie"); and it works. But the problem is that I need to pass 2 parameters to the Rev cgi scrip

PHP and Rev cgi

2005-10-06 Thread jbv
Hi list, I'm trying to launch a Rev cgi script from a PHP script. I'm using the following line : exec("/home/httpd/html/cgi-bin/./myScript.cgi 0 $caddie"); and it works. But the problem is that I need to pass 2 parameters to the Rev cgi script, and can't figure how to read these pa