I have the following simulation in C for cars in the driving circle alt text http://dl.getdropbox.com/u/175564/cars.png
For example,
7 <space> <enter>
gives more machines for modeling, and
s1 <enter>
places the upper sign on the inbound road No. 1.
I want to put the simulation on a web page so that users can try it. However, I do not know where to start.
I know Joomla and a little about Django. Perhaps they can be useful.
How can you put a program on a web page so that users can use it?
CGI - , ; , -, . , , PHP HTML . .
: http://www.cs.tut.fi/~jkorpela/perl/cgi.html
, . , .
C - :
http://labs.adobe.com/technologies/alchemy/
CGI C: http://www.cs.tut.fi/~jkorpela/forms/cgic.html
, , PHP. , , , CGI C.
, C , ? , PHP shell_exec() . -, .
:
$sim = shell_exec("/path/to/binary -a 5 -b 6"); echo $sim;
, shell_exec, , .
, , .
cgi http GET/POST ( , ..). , , , .
- Java. tcp- - .
. C -, .
, php , . php.
, , shell_exec() .
, shell_exec ( "/bin/program -arguments > /tmp/prog-tmp.txt" ), prog-tmp.txt.
Source: https://habr.com/ru/post/1707085/More articles:ActiveRecord inheritance with various database tables - inheritanceEvaluate a variable before passing it to the JSP label handler - javaHTML nomenclature - htmlКак выполнить атомный 64b, прочитанный на x86 (Pentium и выше)? - c++Error trying to set svn password on Hudson - svnРедактор YUI (RTE): вставьте элемент HTML и поместите курсор внутрь - javascriptIs there mySQL equivalent for Postgresql "Adjustment of lines in dollars"? - mysqlAuto sort when pasting in QTreeWidget - c ++Blender-python - pythonShow table cell in row pointer row - javascriptAll Articles