Can't find existing file
| From: | Dee Ayy | Date: | Mon, 22 Nov 2010 19:24:55 +0000 |
| Subject: | Can't find existing file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-309613@lists.php.net to get a copy of this message | ||
1)
Warning: getimagesize("./photos/HPR-130-260_HD-3070-1.jpg"): failed to
open stream: No such file or directory in ... on line ...
ls ./photos/HPR-130-260_HD-3070-1.jpg
./photos/HPR-130-260_HD-3070-1.jpg
ls "./photos/HPR-130-260_HD-3070-1.jpg"
./photos/HPR-130-260_HD-3070-1.jpg
2) Similarly...
Also trying
$cmd = 'cp '.$src.' '.$dst;
exec($cmd);
And some files failed to copy. I assumed it was due to spaces in the
name, so I double quoted them. For example:
cp: ./photos/Nozzle 130 Amp SS Alum 94-00994-06 220197.JPG: No such
file or directory
ls "./photos/Nozzle 130 Amp SS Alum 94-00994-06 220197.JPG" FAILS THOUGH
cp ./photos/Nozzle\ 130\ Amp\ SS\ Alum\ 94-00994-06\ 220197.JPG ... ALSO FAILS
Help.