Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-07-2012, 07:52 PM   #1
Baseband Member
 
Join Date: Jun 2012
Posts: 79
Default Building a conpiler website

Can someone help me build a website that let's the user type C++ code into a text box, then when they press the compile button, it creates an .exe which it prompts then to download?
__________________

Scyere is offline   Reply With Quote
Old 06-08-2012, 07:47 PM   #2
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Building a conpiler website

You'll probably just want to write a frontend to a compiler like MinGW in something like PHP.

Look into the exec() function in PHP. You could take the input from a text field, write it to a file with fopen() and fwrite(), then run system("gcc filename.c -o filename.exe") to compile the code. You could then provide a link to the output executable.

Of course, this is only a very rough guide!
__________________

j03 is offline   Reply With Quote
Old 06-10-2012, 07:32 PM   #3
Baseband Member
 
Join Date: Jun 2012
Posts: 79
Default

I hav no idea what u just said xD
Scyere is offline   Reply With Quote
Old 09-07-2012, 12:30 AM   #4
Solid State Member
 
Join Date: Sep 2012
Posts: 7
Default

Well,Hmm...An Exe ???Ok...Apparently In Dream Weaver You Can Include VBScript In HTML...What About this...
<html>
<head>
<script type="text/javascript">
A==prompt ("DOWNLOAD???y/n")
If A=="y"
iamacplusplusprogrammer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:40 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0