SSL Multilevel Subdomain Wildcard

No, it is not possible. A wildcard inside a name only reflects a single label and the wildcard can only be leftmost. Thus *.*.example.org or www.*.example.org are not possible. And *.example.org will neither match example.org nor www.subdomain.example.org, only subdomain.example.org. But you can have multiple wildcard names inside the same certificate, that is you can have … Read more

How to install ffmpeg for PHP

The easiest solution is to download an already compiled ffmpeg binary/executable and point your script to it. On the FFmpeg Download page refer to the Get the packages section for links to recent static builds for Linux, Windows, and macOS. You can use shell_exec() as shown in FFmpeg Wiki: PHP and provide the full path … Read more

Express.js – app.listen vs server.listen

The second form (creating an HTTP server yourself, instead of having Express create one for you) is useful if you want to reuse the HTTP server, for example to run socket.io within the same HTTP server instance: var express = require(‘express’); var app = express(); var server = require(‘http’).createServer(app); var io = require(‘socket.io’).listen(server); … server.listen(1234); … Read more

PHP server on local machine?

PHP 5.4 and later have a built-in web server these days. You simply run the command from the terminal: cd path/to/your/app php -S 127.0.0.1:8000 Then in your browser go to http://127.0.0.1:8000 and boom, your system should be up and running. (There must be an index.php or index.html file for this to work.) You could also … Read more