Re: Can't find existing file

From: Date: Mon, 22 Nov 2010 19:30:28 +0000
Subject: Re: Can't find existing file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-309614@lists.php.net to get a copy of this message
On Mon, Nov 22, 2010 at 14:24, Dee Ayy <dee.ayy@gmail.com> wrote: > 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. Well, I'm not the most brilliant man in the world, but it sounds - based upon your very vague description - as though the file doesn't exist. -- </Daniel P. Brown> Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/

« previous php.general (#309614) next »