Slim 3 cannot work in a subdirectory by default.
Here I will show you a simple soultion to run multiple Slim applications under Apache.
The directory skeleton structure:
Slim 3 cannot work in a subdirectory by default.
Here I will show you a simple soultion to run multiple Slim applications under Apache.
The directory skeleton structure:
This tutorial shows you how to install a LAMP stack under Ubuntu 18.04 LTS (Bionic Beaver).
| var server = require( 'http' ).createServer(); | |
| // our html template | |
| var script = function( f ) { | |
| // get just the content of this script | |
| var s = /^[^\{]+\{\n?([\s\S]+)\}/.exec( f )[1]; | |
| return [ | |
| '<!DOCTYPE html><html>', | |
| '<head>', | |
| '<script type="text/javascript">',s,'</script>', |