Re: [NEWBIE] Trying to create a function from an existing script
| From: | Josip Dzolonga | Date: | Fri, 28 Jan 2005 05:51:29 +0000 |
| Subject: | Re: [NEWBIE] Trying to create a function from an existing script | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207548@lists.php.net to get a copy of this message | ||
On Fri, 2005-01-28 at 14:41 +0900, Dave wrote:
> if ( move_uploaded_file($HTTP_POST_FILES[$name]['tmp_name'], $store_dir
> . basename($HTTP_POST_FILES[$name]['name']) )
Try echoing $store_dir . basename($HTTP_POST_FILES[$name]['name'] before
uploading the file (before the move_uploaded_file function). It might
_NOT_ contain a slash between $store_dir and
$HTTP_POST_FILES["$name"]['name'].
--
Josip Dzolonga,
dzolonga at mt dot net dot mk