reelstuff wrote:...I push for different uses, because I do not see the use of the revlet as a client only use, because it is a container, that can communicate, it should be able to do more than just sit there as a client request, leaving aside the issue of security because we all know that you can only put so strong a lock on the door, someone will come along and break it eventually.
Your inspiration is a good one, and can be realized within the bounds of reasonable security. In fact, given the confines of the browser, there is simply no other way.
Another option is to consider moving your project outside the browser, using a standalone which would give you all the connectivity you enjoy with the web and other Internet protocols, but also give you all the freedom desktop apps enjoy.
I have an article outlining some of the benefits of this model here:
http://www.fourthworld.com/embassy/arti ... tapps.html
It may not serve your needs for the project at hand, but would provide what you're looking for unencumbered by the limitations of the browser.
I will consider, your comments a little more, I just wish that there were not so many limits on the use of this resource and the irev tagging anyway thanks, for posting, I can see that it is time to abandon ship
A plugin is a plugin. You could move to Flash, Java, JavaScript, or any other client-side solution, but the relationship between the client and PHP will remain the same.
In fact, this comparison with other client-side options shows the RevWeb plugin in a favorable light:
http://revmedia.runrev.com/beginners-gu ... e-compare/
If you enjoy RevTalk enough to want to use it on both the client and the server, on-rev is not your only option. While the pricing for the on-rev service is a fair bargain, the underlying technology is only incrementally more powerful than what you can enjoy by using the Rev runtime engine as a standalone (real-time debugging notwithstanding).
And in the near future, a version of the Rev engine used at on-rev.com will be available for free use on any server. You still won't have real-time debugging or a couple of other extra features specific to the on-rev hosting configuration, but it will be a pretty nice engine, in many ways rivaling the power of PHP but with the grace of chunk expressions and other RevTalk language features.
Even just using the current runtime engine as a CGI performs remarkably well, costs nothing, and on most servers takes only a couple minutes to install and test. Once in place, it's simple to write scripts for it, and with the RevWeb plugin provides a way to use one language on both the client and the server right now at zero cost.
To use your example, you could put this in your Revlet:
Code: Select all
on exportRoutine
get the text of fld "testing2"
put urlEncode(it) into tMyVar
get url ("http://domain.com/cgi-bin/mythang.cgi?"& tMyVar)
if word 1 of it is "OK" then
answer "Data send successfully."
else
answer "An error occurred: "& it
end if
end exportRoutine
And use this in your CGI script:
Code: Select all
#!../../bin/rev -ui
-- use path appropriate to your server setup
on startup
-- Store incoming data into file:
put $QUERY_STRING into url "file:myfile.php"
-- Return "OK" with proper headers:
put "Content-Type: text/html" & cr &\
"Content-Length: 2"&cr&cr &\
"OK" &cr&cr
end startup
One language, two minutes to set up, zero cost.