Skip to content

{ Category Archives } PHP

Parsing the HTTP Accept: header

I wanted the webservices to be as RESTful as possible, so they should use the Accept: header rather than file name extensions to determine the type.

bililite.com webservices

I've been spending my project time learning how to manipulate images in PHP to let me create custom growth charts and the like, with a RESTful interface that would allow them to be used as the source of <img> elements. I like the way things turned out; they are available at bililite.com/webservices/. It includes height,weight, [...]

Moving the Blog

I decided that this blog is mine, rather than Young Israel's, so I wanted to move it to a domain that I personally own. Thus, it is no longer at youngisrael-stl.org/wordpress, but at bililite.com/blog. Moving the blog intact was non-trivial, so I'm recording how I did it, based on mydigitallife's instructions: Create the new folder, bililite.com/blog/ Create [...]

Scheduling tasks with PHP

I've got a cheap website that doesn't let me use cron to schedule tasks (like database backups), so I had to do it myself. I found pseudo-cron, which looks cool but has some bugs and was more complicated than I wanted, so I wrote a simple PHP script to do what I wanted.

The Agony of Unicode (and backing up mySQL)

All I wanted to do was back up the Young Israel databases, some way more amenable to automation than phpMyAdmin. There are lots of PHP-based solutions on the web, but all seem based on mysqldump. I implemented one and found myself faced with an eyeful of אריאל מאיר יעקב בן דוד אברהם where the Hebrew [...]