indexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindexindex SyKoHPaTh

SyKoHPaTh

logo

Where Code Goes to Die


Restored from backup...mostly?

124

I manually restored as much as I could from backup, however, I decided to trim out all non-dev related entries (nothing important anyway!). So, a much slimmer site, which still retains just the usefu ...


"Often experts do arrive at correct answers but it is the phenomenon of uninformed people thinking they know better that creates 'controversies' where there shouldn't be any." - some random guy on Red ...


Line Endings

/bin/sh: /usr/local/sbin/.php: /usr/local/bin/php^M: bad interpreter: No such file or directory

I have a php script that is run as a cron job. I get this error when I try to run it from ...


Set up a cron job

A cron job is a way to "automatically" run a script at a specific interval. It's not too difficult to setup.

1) From terminal, edit the cron table:
crontab -e
2) That starts a VI ...


Maze Generation - Recursive Division

I've been in the mood to make a sort-of Gauntlet clone, so this weekend I decided to mess around with maze generation a little bit. On [url=http://en.wikipedia.org/wiki/Maze_generation_algorithm]Wik ...


Web Development From Scratch, Day 7

Next up: Create Record in Database.

So the first thing is, to cram our database stuff into the model, make a view, and then tweak the controller to call both of them. All we'll do for the view is ...


Web Development From Scratch, Day 6

The typical approach to handling databases is called, "CRUD". This stands for Create, Read, Update, and Delete. While not all of these will be used for every project, "Read" is mainly used (spea ...


Web Development From Scratch, Day 5

So far, these tutorials have all been about setting up the *environment* that we'll be working in, and not necessarily the actual coding part of things. Typically each user will develop their own wo ...