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.
As of (at least) PHP 5.2, you can no longer convert an object to a string unless it has a __toString method. Converting an object without this method now gives the error: Object of class could not be converted to string in <file> on line <line>
I have PHP 5.2.3 here, but the class works fine. However, if I do the following at the command line, I have the problem:
$ php -r "echo PHP_VERSION; echo new StdClass;"
5.2.3-1ubuntu6
Catchable fatal error: Object of class stdClass could not be converted to string in Command line code on line 1
What are the lines before and after your line 13? Also, which version of the class are you using?Reply
As of (at least) PHP 5.2, you can no longer convert an object to a string unless it has a __toString method. Converting an object without this method now gives the error: Object of class
I have PHP 5.2.3 here, but the class works fine. However, if I do the following at the command line, I have the problem:
What are the lines before and after your line 13? Also, which version of the class are you using?