Archive for May, 2007

Bridging Etomite and SMF

A few months ago I started a photography forum with another moderator from a previous forum I was on. Part of our goal was to have a library of articles in a static site and link those articles back to a Simple Machines forum for discussion.
For the CMS I decided on Etomite since I’ve [...]

How to list disabled functions in PHP

I have a web client that had some really odd problems with a program of mine randomly logging him out. Normally I upload a phpinfo file and use that to see if I could find out anything but when I did that I got an error that phpinfo had been disabled for security purposes.
What [...]

How to create a theme for Etomite

One of the advantages of using a CMS package is that site publishers can maintain their sites with very little knowledge of the underlying technologies used. But to customize your site and make it your own it does help to know a little HTML, or at least convert a template done in FrontPage or [...]

directory_size() function for PHP

Here’s a quick PHP function that returns the sum of all filesizes in a directory. It does this by looping through all files it finds in the directory you pass to it. If a subdirectory is found the function calls itself recursively.
To use: pass the directory you want to check as the [...]

PHP function for next Saturday and previous Sunday

For the report system in a project that I’m working on I needed a way to find the first second of a week and the last second of a week based on a Unix timestamp.
Credit for the previous Sunday goes to Shaun who posted a way to find it on the PHP site for strftime, [...]