Tags
Coding WTF of the day.
Thu 31 Mar 2011 10:28:36 PM EST / Comments / Tags: php,code,wtf
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.
Thu 26 May 2011 10:36:41 AM EST / Comments / Tags: mysql,code,wtf
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
Fri 06 Aug 2010 01:18:00 AM EST / Comments / Tags: php,kohana,ko3,kohanaphp,code
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
Mon 26 Jul 2010 03:30:00 PM EST / Comments / Tags: php,kohana,sqlite,framework,code,www,site
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…