HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1253
Number of posts: 3360

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
C in a web page.... Posted by nrose79 on 30 Aug 2003 at 3:26 AM
Is there any way to i guess encapsulate a small c program into an html document?
Thanks for any help!
Report
Re: C in a web page.... Posted by Jonathan on 30 Aug 2003 at 1:34 PM
: Is there any way to i guess encapsulate a small c program into an
: html document?
: Thanks for any help!
With the intention of display it or having it compiled and executed? If compiled and executed, on the server, or on the machine of the person viewing the HTML?

Jonathan


###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Report
Re: C in a web page.... Posted by nrose79 on 30 Aug 2003 at 7:09 PM
: : Is there any way to i guess encapsulate a small c program into an
: : html document?
: : Thanks for any help!
: With the intention of display it or having it compiled and executed? If compiled and executed, on the server, or on the machine of the person viewing the HTML?
:
: Jonathan
:
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
:
The C application is already compiled. The situation is the HTML and C is on the server running a httpd (Apache). Viewing web pages is great. But what would the requirments be if I wanted to have an executable run in the browser from the HTML document? Is it possible? Would it be better If I rewrote the C program in PHP or somthing?( I'm trying to avoid rewritting anything)

Report
Re: C in a web page.... Posted by Jonathan on 31 Aug 2003 at 11:51 AM
: : : Is there any way to i guess encapsulate a small c program into an
: : : html document?
: : : Thanks for any help!
: : With the intention of display it or having it compiled and executed? If compiled and executed, on the server, or on the machine of the person viewing the HTML?
: :
: : Jonathan
: :
: :
: : ###
: : for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: : (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: : /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
: :
: :
: The C application is already compiled. The situation is the HTML and
: C is on the server running a httpd (Apache). Viewing web pages is
: great. But what would the requirments be if I wanted to have an
: executable run in the browser from the HTML document? Is it
: possible?
If you want to run a compiled C program in the browser, you're in for a lot of trouble. For security reasons alone there is no real way of doing this. Also remember that a C program is compiled to target a particular platform. You'll be handling requests from many platforms.

: Would it be better If I rewrote the C program in PHP or somthing?(
: I'm trying to avoid rewritting anything)
PHP is also server side. When we are talking about server side web applications, we are talking about a program that generates HTML code, which the web server then sends to the browser. Is this what you want to do?

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.