PHP Classes

class is not working on a "chrooted" environment

Recommend this page to a friend!

      class.upload.php  >  All threads  >  class is not working on a "chrooted"...  >  (Un) Subscribe thread alerts  
Subject:class is not working on a "chrooted"...
Summary:class is not working on a "chrooted" environment
Messages:2
Author:Chris Smith
Date:2006-04-15 20:01:40
Update:2006-05-21 12:09:21
 

  1. class is not working on a "chrooted"...   Reply   Report abuse  
Picture of Chris Smith 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 ...

  2. Re: class is not working on a "chrooted"...   Reply   Report abuse  
Picture of Colin Verot Colin Verot - 2006-05-21 12:09:21 - In reply to message 1 from Chris Smith
Thank you for the information.

I will check that out, and implement the solution you suggest.

C.