Author |
Message |
s3arkay
|
Posted: Fri Sep 22, 2006 9:22 am Post subject: Running Turing from a website |
|
|
I heard from my friend that you can put a Turing program onto a website.
Does anyone know how to do that?
Lets say someone visits my website, and then I want the turing program to run on the certain page without them downloading or hitting anything.
Any ideas? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
do_pete
|
Posted: Fri Sep 22, 2006 10:41 am Post subject: (No subject) |
|
|
It's impossible to do that as far as I know. |
|
|
|
|
|
Tony
|
Posted: Fri Sep 22, 2006 12:06 pm Post subject: (No subject) |
|
|
thx for your comment, but it is entirely possible.
Remember CGI? That old school setup where a compiled executable would handle dynamic web requests?
Quote:
A CGI program can be written in any language that allows it to be executed on the system
such as Turing!
It could even serve up images that it generates and saves to a temp folder.
So yeah, one could use Turing to run a website. It's just that noone has been using CGI for years (ever since PHP and such hit the main stream).
Unless ofcourse you mean an embedded applet such as Java... then no, no you can't |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
s3arkay
|
Posted: Fri Sep 22, 2006 2:10 pm Post subject: (No subject) |
|
|
Tony wrote: thx for your comment, but it is entirely possible.
Remember CGI? That old school setup where a compiled executable would handle dynamic web requests?
Quote:
A CGI program can be written in any language that allows it to be executed on the system
such as Turing!
It could even serve up images that it generates and saves to a temp folder.
So yeah, one could use Turing to run a website. It's just that noone has been using CGI for years (ever since PHP and such hit the main stream).
Unless ofcourse you mean an embedded applet such as Java... then no, no you can't
How do you use cgi then? lol |
|
|
|
|
|
s3arkay
|
Posted: Mon Sep 25, 2006 2:23 pm Post subject: (No subject) |
|
|
anyone know how to do it? |
|
|
|
|
|
NikG
|
Posted: Mon Sep 25, 2006 5:39 pm Post subject: (No subject) |
|
|
Well #1 is you'll need a site that supports CGI.
#2, you'll need permission to run apps on that site.
#1 might be hard because, like Tony said, php is the new thing.
#2 is probably impossible! If sites allowed people to run their own apps, there's no telling what could happen (although I'm sure you have nothing but good intentions). |
|
|
|
|
|
richcash
|
Posted: Mon Sep 25, 2006 6:19 pm Post subject: (No subject) |
|
|
Well, I know nothing at all about CGI, but I'm just wondering if you could make your own website and implement CGI (does anyone know whether it's free or not?). Why couldn't you use a web page? (which I'm sure you couldn't, or people would do it!) |
|
|
|
|
|
Tony
|
Posted: Mon Sep 25, 2006 6:37 pm Post subject: (No subject) |
|
|
sites allowing people to run applications? Ok, probabably not for free..
Though it's pretty easy to set up your own computer to run an Apache webserver and anything else you would like.
But the bottom line is that it's simply more practical to use an embedded, interpreter language to power the dynamic content of any web page. So s3arkay - why Turing? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
BenLi
|
Posted: Tue Sep 26, 2006 3:12 pm Post subject: (No subject) |
|
|
im gonna take a wild guess... either he's just curious or its the only language he knows |
|
|
|
|
|
s3arkay
|
Posted: Fri Sep 29, 2006 5:12 pm Post subject: (No subject) |
|
|
BenLi wrote: im gonna take a wild guess... either he's just curious or its the only language he knows
Both... but I guess Im not going to be able to lol |
|
|
|
|
|
Dan
|
Posted: Fri Sep 29, 2006 6:47 pm Post subject: (No subject) |
|
|
You could also make your own webserver in turing (witch i have seen done befor) and then you could make it output what every you whonted.
How ever with CGI or making your own webserver your output will be limted to html/xml and such formates. Witch means you could not make an embed game like you whould with java applets or have anything behond what you get with a html webpage. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
wtd
|
Posted: Sun Oct 01, 2006 1:09 pm Post subject: (No subject) |
|
|
Tony wrote: It's just that noone has been using CGI for years (ever since PHP and such hit the main stream).
PHP scripts are CGI applications. That fancy new Rails app? It's a CGI application.
http://en.wikipedia.org/wiki/Common_Gateway_Interface |
|
|
|
|
|
Tony
|
Posted: Sun Oct 01, 2006 4:06 pm Post subject: (No subject) |
|
|
That's a good point.. I should have known that
I mean just the use of pre-compiled executables. And before I get corrected on that as well, I am aware of using Java with WebSphere / WebLogic (and the like), and they get a category of their own |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|