Re: Newbie - still working on my first script.
| From: | Miguel Cruz | Date: | Fri, 03 May 2002 17:01:16 +0000 |
| Subject: | Re: Newbie - still working on my first script. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95929@lists.php.net to get a copy of this message | ||
On Fri, 3 May 2002, TGL wrote:
> I got the file to upload to my folder. But when I go to download it to my PC
> using FTP, it tells me NO SUCH FILE, but I can see it in the folder. The
> folder has read, write, execute permissions. I included the script below.
>
> if(copy ($File, "ads/ $File_name")) {
Do you really want that space after the slash? That sounds like a recipe
for trouble. Maybe the reason you can't download it with FTP is because
there's a space in the beginning of the name now.
Also, use 'move_uploaded_file' rather than 'copy' for files that have been
uploaded to temp space. It's more secure.
miguel