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
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.
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. The
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
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
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 |
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
in different ways
J. Landman Gay wrote:
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
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:
?php
// set command to be executed
$command = $_SERVER['DOCUMENT_ROOT
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
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
.
Le 6 nov. 06 à 21:15, J. Landman Gay a écrit :
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
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
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
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 back
Jaque take a look at my post - I did a few test on my server mixing rev
cgis and php:
http://groups.google.com/group/runrev/browse_thread/thread/8292c3dc6328c711/e4d4d07a1d82a30b?lnk=gstq=CGIrnum=6#e4d4d07a1d82a30b
I got both Server Side Includes and exec working...
David Bovill wrote:
Jaque take a look at my post - I did a few test on my server mixing rev
cgis and php:
http://groups.google.com/group/runrev/browse_thread/thread/8292c3dc6328c711/e4d4d07a1d82a30b?lnk=gstq=CGIrnum=6#e4d4d07a1d82a30b
I got both Server Side Includes and exec working...
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
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
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
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
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 :
22 matches
Mail list logo