View Single Post
  #3 (permalink)  
Old March 16th, 2010, 07:32 PM
PeterPeiGuo PeterPeiGuo is offline
Friend of Wrox
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts

This line is suspicious (unless that's intended and you did name your files like imagebeach.jpg):
$dir ='C:/Programmi/Apache Software Foundation/Apache2.2/htdocs/images'
You probably meant (I added a / at the end of the string):
$dir ='C:/Programmi/Apache Software Foundation/Apache2.2/htdocs/images/'
Or modify the following line:
       $dest_image_name = $dir . $destination . '.jpg';
And change it to:
       $dest_image_name = $dir . '/' . $destination . '.jpg';
One way or another you have to add that /, otherwise 'image' won't appear as a folder name but part of your image's name (like imagebeach.jpg)
Reply With Quote