Chris Smith - 2006-04-15 20:01:40
Eg. like the apache directive: php_admin_value open_basedir "/path/to/sitedir/"; due to the file_exists, copy, imagecreatefrom* functions which want to operate on the source file which is outside from this dir (mostly in /tmp on linux systems).
A possible solution could be that the user must create a temp dir in the open_basedir, first the class move the file to that temp dir, then process that file, after processing it deletes the temp file.
And perhaps it can rely on a class property, like: string chrootdir ...