Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: PHP Directory structure and code organization.
BAD:
* /var/www/config/mysql.json
* /var/www/static/site.css
* /var/www/index.php
* $_SERVER['DOCUMENT_ROOT'] = '/var/www';
GOOD:
* /var/www/public/static/site.css
* /var/www/public/index.php
* $_SERVER['DOCUMENT_ROOT'] = '/var/www/public';
There are no comments on this comment yet.
BAD:
* /var/www/config/mysql.json
* /var/www/static/site.css
* /var/www/index.php
* $_SERVER['DOCUMENT_ROOT'] = '/var/www';
GOOD:
* /var/www/config/mysql.json
* /var/www/public/static/site.css
* /var/www/public/index.php
* $_SERVER['DOCUMENT_ROOT'] = '/var/www/public';