You need at least PHP 7.2 to encrypt ZIP files with a password.
<?php
$zip = new ZipArchive();
$zipFile = __DIR__ . '/output.zip';
| 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>', |
This tutorial shows you how to install a LAMP stack under Ubuntu 18.04 LTS (Bionic Beaver).
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: