Nice script, one main modification... if using this with certain other modrewrite settings (e.g. replacing php files with fake directories etc) the include needs to be relative from the document root, rather than relative from the current page.
To do this replace the line :
require('../phpthumb/phpthumb.class.php');
Document root
Nice script, one main modification... if using this with certain other modrewrite settings (e.g. replacing php files with fake directories etc) the include needs to be relative from the document root, rather than relative from the current page.
To do this replace the line :
require('../phpthumb/phpthumb.class.php');
with the more generic:
require($_SERVER['DOCUMENT_ROOT'] . '/phpthumb/phpthumb.class.php');
Hope that helps