Login   Register  
PHP Classes
elePHPant
Icontem

File: README.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Anechitoaie  >  GtkMozEmbed Screenshot  >  README.txt  >  Download  
File: README.txt
Role: Documentation
Content type: text/plain
Description: Readme
Class: GtkMozEmbed Screenshot
Take page screenshots on Linux with Mozilla widget
Author: By
Last change:
Date: 2008-08-03 10:57
Size: 927 bytes
 

Contents

Class file image Download
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 )