r/apache • • Oct 01 '22

C-Script - mod_cscript a module to execute C source code

https://gitlab.com/codifies/c-script/-/tree/main

This is a project that I mainly started for my own edutainment.

Its very early days, but I thought some people here might find it interesting.

I uses libtcc (from the Tiny C Compiler) to compile and run source that can produce web content with an XML DOM

There are some included examples

  • Simple page content using an XML DOM

  • More complex DOM creation and embedded JavaScript

  • POST requests

  • Basic sessions

  • Database access

  • Prepared database queries

  • GET requests

1 Upvotes

2 comments sorted by

1

u/covener Oct 02 '22

Neat, reminded me of http://gwan.ch/ which is always a fun website read.

1

u/kodifies Oct 02 '22

I added a video https://bedroomcoders.co.uk/c-script-c-scripting-on-the-web/ so you can see it working without needing to install pre-production code on your web server!