Nicolas Grekas - nicolas.grekas, gmail.com
17 June 2011 - Last updated on 3 sept. 2011
Not updated any more on this gist. See:
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
Nicolas Grekas - nicolas.grekas, gmail.com
17 June 2011 - Last updated on 3 sept. 2011
Not updated any more on this gist. See:
| <?php | |
| class Job extends \Stackable { | |
| function run() { | |
| $this->isComplete = TRUE; | |
| } | |
| } | |
| class MyWorker extends \Worker { | |
| function run() {} | |
| } |
| <?php | |
| /** | |
| * Represents a MIME content type | |
| * | |
| * @author Chris Wright <[email protected]> | |
| */ | |
| class ContentType | |
| { | |
| /** |
| <?php | |
| $performGC = false; | |
| if ($performGC) { | |
| echo "GC collection will be done - app should not crash.\n"; | |
| } | |
| else { | |
| echo "GC collection won't be done - app should crash.\n"; |
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).