Skip to content

PHP application to compile and execute (or debug) C++ code, as input by the browser user.

License

Notifications You must be signed in to change notification settings

Bango1999/cpphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is nonfunctional at the moment*

It has worked precariously on Nitrous.io, in this PHP format. I also have another nonworking Node.js implementation in another repository.

Utilizes bash and g++ to perform php CLI executions, namely compilation and execution of C++ files, which the user inputs the raw code for via a glorified textarea in their browser window.

Takes parameters at this point rather than asking the user for realtime stdin queries.

Rudimentary user system, registered users get features like code saving, and administrators have access to all code saved by everyone, not just registered users. So IP addresses are logged with every code submission as well.

Requirements:

  • PHP
  • Bash
  • g++
  • mysql

Implements some third party libraries like CodeMirror to make a pretty textarea.

I have since lost the box I got it working on, So I don't have database schematics, but its pretty straightforward if you read kony.php theres a users table and a codes table with relevant fields.

Notably, all the C++ code submitted is gzip compressed into the codes table for blob storage and retrieval.

About

PHP application to compile and execute (or debug) C++ code, as input by the browser user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published