To get this running you need a linux box and php5 with Gtk and GtkMozEmbed installed.
First install this packages:
php5-cli
php5-dev
libglib2.0-dev
libgtk2.0-dev
libxul-dev
Then go to http://gtk.php.net/download.php and get the php-gtk-2.x.x source
Extract it in a place of your choice
tar -xzvf php-gtk-2.x.x.tar.gz
Run ./buildconf
Due to a nice little bug ( http://bugs.php.net/bug.php?id=44921 ) you need to apply the following patch
http://pastebin.com/pastebin.php?dl=f60e601e7
Run ./configure and enable mozembed ( --with-mozembed )
Run make
Run make install as root
Edit your php.ini and load php_gtk2 extension
Try to enjoy the script :|
A video with this in action can be seen at http://www.youtube.com/watch?v=NUIvpnYflIk
This is a php inplementation of a script in python by Matt Biddulph ( http://www.hackdiary.com/archives/000055.html ) |