class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I've implemented your changes but other problems occur further down is_writeable. I've attempted a similar fix but this leads to a further problemReply
Re: Non-static method upload::isReadable() Problem new!
Yes, the same fix has to be applied to isWriteable().
The strange thing is that I don't have the problem with my version of PHP5, which is 5.1.2. I was damn sure that I tested the class on PHP4 and 5! So maybe it is a PHP behaviour prior to 5.1.2
In any case, it is not right to define a static function within a class method, so I will change it. Let alone that both functions are used only once.
Can you update your version of PHP?
Which further problems the fix led to when you tried it?Reply
Yes I'm using 5.0.4.
I've implemented your changes but other problems occur further down is_writeable. I've attempted a similar fix but this leads to a further problem
The strange thing is that I don't have the problem with my version of PHP5, which is 5.1.2. I was damn sure that I tested the class on PHP4 and 5!
So maybe it is a PHP behaviour prior to 5.1.2
In any case, it is not right to define a static function within a class method, so I will change it. Let alone that both functions are used only once.
Can you update your version of PHP?
Which further problems the fix led to when you tried it?