This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| <?php | |
| class Db | |
| { | |
| private $_connection; | |
| private static $_instance; //The single instance | |
| private $_host = DB_HOST; | |
| private $_username = DB_USER; | |
| private $_password = DB_PASSWORD; | |
| private $_database = DB_DB; |
| /* I have only tested this on Chrome but it | |
| prints nicely to A4 size */ | |
| @media print { | |
| body { | |
| width: 210mm; | |
| height: 297mm; | |
| } | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000