Recent Posts

PHP Document Root, Path and URL detection

less than 1 minute read

PHP has no built-in base URL variable. In all the mess that is the $_SERVER variable, there is nothing that will tell you the base URL for your website.  Thi...

Track your time working on PHP projects

2 minute read

Have you ever had a project manager? You know, the kind of person that comes to bug you about your timesheet not being properly done and how important it is?...

Fixing permissions using inotify and ACLs

1 minute read

I was working on a shared hosting project and I noticed the permissions were getting a bit complicated. For each website: Each user must have read/write pe...

Run a script with lowest priority

less than 1 minute read

When doing low-priority tasks like backups are fixing permissions on a cronjob, it is a good idea to modify the niceness of the script. By using ionice and r...