MySpace Friend List Export – Code now available

October 27th, 2007

The code for the MySpace Friend List Export script I wrote a while back is now available for download. If you’re a PHP programmer and are interested in viewing the source code for it, take a look at http://stuff.daniel15.com/php/myspace/get_friends.txt :)

The code is quite ugly, but, well, so is MySpace. That’s my excuse. :P

Restore MySQL dump (backup) using PHP

December 9th, 2006

The other day, I was looking for an easy way to restore a MySQL dump (or backup, whatever you like to call it) in PHP. I’ve previously used a segment of the code from PHP MySQL Backup V 2.2 for this, but it didn’t seem to support FULLTEXT indicies that well. So, I searched around, but couldn’t find anything. I even asked on the PHP IRC channel, and they suggested to use shell_exec to call mysql (unfortunately, I’ve disabled shell_exec for security reasons). Looking closer, I noticed that this was actually quite easy to do. Read the rest of this entry »