Skip to content

This is a Tiny Web Server created by IBM and modifyed to support .php files.

Notifications You must be signed in to change notification settings

ivannrnt/C-TinyWebServer-wPHP-IBM-nweb23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

TinyWebServer

This program is a web server that allows running php program from C.

After modification it can be compiled with the following command:

gcc nweb23.c -o nweb23php

The php code doesn't need compilation.

Requirements

For ubuntu 22.04:

  • PHP: sudo apt install php-cli
  • GCC: sudo apt install build-essential

For other linux distributions install php 8.1 and gcc 11.3.0 (tested with those versions).

Quick Start

Running TinyWebServer in linux console:

NOTE: It is recomended to compile it for 64 bits systems.

1- enter the folder with cd TinyWebServerPHP/

2- run nweb23php with ./nweb23php 35000 .

first parameter is the port and second is the directory

3- see the web server by searching http://localhost:35000 in a browser ("localhost:PORT")

CREDITS

This is an academic project for a tecnical high school course: Operative systems.

The new code is released under the GNU GENERAL PUBLIC LICENSE Version 3

About

This is a Tiny Web Server created by IBM and modifyed to support .php files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published