latest post

Setting a timeout on file_get_contents for URLs

Stream Context

Just a quick post since this doesn’t seem to be very well covered, but could be useful to someone. You may be familiar with PHP’s file_get_contents function as a way to load the contents of a file into a variable. But it can also be used to get fetch the content of a site, by passing it a URL instead of a filepath. continue reading

Bookmark and Share

older posts

Kohana get a witness?

I’ve blogged in the past about building my own PHP framework. I’ve found little time to further this goal in recent months and so I started looking around for a good foundation to work from. I’ve used Code Igniter before, but it’s lesser known, PHP5-only, strict OOP fork, Kohana seems a better fit with my tastes.

continue reading

Base jumping with PHP

Since my last post, and yet another private self-promise to post on a more regular basis, with more interesting or in depth info than my previous rambles, I have managed to think of around 6 different post ideas, then forgotten about them. So in absence of depth or interest, here’s some code, instead. Or at least some writing abotu some code.

continue reading