Hacking: rev cgi's and other languages (ie php) together

1 view
Skip to first unread message

David Bovill

unread,
Oct 18, 2006, 10:38:12 PM10/18/06
to How to use Revolution
I"ve been playing with some hacks using Rev cgi"s and php scripting. And
thought I'd send out some notes for ideas and feedback:

1) First we can use iFrames - a Rev or any cgi can create the html required
to fit inside the iFrame
2) We can use Server Side Includes (SSI)
3) We can use language specific calls to shell or cgi's on most often the
local server. See below for an example in php:

<html>
<head></head>
<body>

<?php
virtual ("ssi.shtml");
?>

<br />


<?php
$output = shell_exec('./test.cgi');
echo "<pre>$output</pre>";
?>

</body>
</html>

Note - for "virtual" to work php must be ruing as a module and "shell_exec"
is often disabled by ISP's if they run php as a module - so it is often one
or the other.

3) You can use sockets to comunicate with a long running Rev process (see
Pierre"s work)
4) Ay more?
_______________________________________________
use-revolution mailing list
use-rev...@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply all
Reply to author
Forward
0 new messages