Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: bakedjake
cp /dir/dir2/filename.jpg ./
cp: cannot stat `/dir/dir2/filename.jpg': No such file or directory
However, the file does exist as I can view the file(image) using a web browser. I have also tried using relative and direct directory paths - but nothing helps - I can't move or copy the files.
Now, get this, if I am in the directory where the files are, I can mv or cp them to where i want them to go...but not the other way around. Now, I'm possitive it is not the way I am specifying the directory in my example above, because I can move test files I make, just not the .jpg image files.
The .jpg files I'm trying to move were uploaded using a php upload script I made. I don't think the images are defective, cause I can view them in a browser. Is there anything that could be causing the problem?
The reason I came across this is because I was making another php script to make thumbnails of the images I upload.... but that php-thumbnail script said that the files didn't exist (and yet I can view them).