Re: File Upload Problem
| From: | Robby Russell | Date: | Thu, 21 Oct 2004 00:00:51 +0000 |
| Subject: | Re: File Upload Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199956@lists.php.net to get a copy of this message | ||
On Wed, 2004-10-20 at 19:27 -0400, Nathan Mealey wrote:
> This file upload problem has me very confused.
>
> The code is:
>
> $upload_dir = '/articles_store/';
> $uploadfile = $upload_dir . basename($_FILES['userfile']['name']);
>
> if (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)) {
> } else { die ("Cannot upload file");
> }
>
> (this code is practically verbatim the example from php.net)
>
> The directory '/articles_store' has permissions 777. And the user is
> and group are 'www' (the Apache user).
Are you sure that this is the correct path? Did you create a new path in
your root level as /articles_store ?
so, if I go on your machine and type in:
$ cd /
$ ls
it'll show
/articles_store
/dev
/etc
/var
...etc?
-Robby
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc