Tags

PHP

All things PHP.

Read more

Coding WTF of the day.

I came across this snippet today on the PHP manual page.. The page was actually about a function called scandir() which lists all files in a directory. This is of interest as I have always used the old school opendir() system to achieve this. The point however was that browsing the comments, I noticed this.

Coding WTF of the day #2.

I came across this snippet today in a site at work.. It triggered an event from last year.. no wonder :\

 
SELECT * FROM event_reminders WHERE DAYOFYEAR(`event_date`)-1 = DAYOFYEAR(CURRENT_DATE())
 

It made me…

Read more

Engine change update

I changed it around.

I decided to really break the model system down hardcore after I wrote the last article. I now have 7 models dealing with data in many ways.

Model_file

This model deals with files directly, this includes checking for readability, existence, etc.

Model_directory

This model deals with directories, this sometimes includes asking Model_file, and Model_process (below) for…

Read more

A change of engine

What?

I changed the engine on my main site, I decided to write a new project in KO3 (Kohanaphp v3) to trial it more than anything.
My goal was simple, create a document engine that would serve documents like a wiki with a blog style front-end to show them in chronological order.

When?

The complete project…

Read more