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.
okay, looks like step ahead. now in both of two files it says: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(//2011.02/DSC07055.jpg) is not within the allowed path(s): (/home/imgrbyin/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/share/pear/:/usr/home/tmp) in /usr/home/imgrbyin/domains/imgrby.ehost.by/public_html/class.upload.php on line 2443 ------- i checked - files exists. didn't edit class.upload.phpReply
Before instantiating the class with your file, you need to move it to a location allowed by open_basedir. Check the PHP on how to do that. But basically, you can do it only with move_upload_file, as it is the function which allows you to access a file protected by open_basedir.
In fact, if the class is directly receiving the form, then it will automatically use move_upload_file for you. I am not sure why you need to have another script calling a second script. But doing so, you need first to move the files before you can process them as local files.Reply
now in both of two files it says:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(//2011.02/DSC07055.jpg) is not within the allowed path(s): (/home/imgrbyin/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/share/pear/:/usr/home/tmp) in /usr/home/imgrbyin/domains/imgrby.ehost.by/public_html/class.upload.php on line 2443
-------
i checked - files exists. didn't edit class.upload.php
In fact, if the class is directly receiving the form, then it will automatically use move_upload_file for you. I am not sure why you need to have another script calling a second script. But doing so, you need first to move the files before you can process them as local files.