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.
Probably entered the wrong path on the ftp to the project directory. Try to enter in index.php
echo dirname (dirname (__FILE__));
You will see the path of this type, eg: / home / name_ftp / public_html / your_project /
You can then save to a variable parameter received $ name_ftp_root = "insert the path directory that appears when you saw the result of an echo";
then you create another parameter telling the directory where you saved your picture
$ folder = '/ images / pets /';
$ tmp_dir_path_photo = $ name_ftp_root. $ folder; // - The path to the root project directory ftp + path to the directory where the images will zaps
... // Code with support for formatting the uploaded pictures
$ img_photo-> Process ($ tmp_dir_path_photo);
if ($ img_photo-> processed)
{
$ file_photo_name = $ tmp_img_foto-> file_dst_name;
}
else
{
echo 'error:'. $ tmp_img_foto-> error;
}
echo dirname (dirname (__FILE__));
You will see the path of this type, eg: / home / name_ftp / public_html / your_project /
You can then save to a variable parameter received
$ name_ftp_root = "insert the path directory that appears when you saw the result of an echo";
then you create another parameter telling the directory where you saved your picture
http://www.poradyseo.pl
http://www.servicemedia.pl