Re: File uploads and handling
| From: | Jason Wong | Date: | Tue, 26 Oct 2004 12:06:50 +0000 |
| Subject: | Re: File uploads and handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200314@lists.php.net to get a copy of this message | ||
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
> I have a form to upload a file from a user's computer to the server. I
> want to then modify the file, and then let the user save it back.
> However, I am having troubles opening the file. It says it doesn't
> exist. Any suggestions?
>
> -------
> if (is_uploaded_file($_FILES['userfile']['name']))
> $handle = fopen($_FILES['userfile']['name'], "r");
> else
> echo $filename . " was not uploaded properly";
> -------
>
> I know the actual filename shows up...
In the above you are only referencing the *filename* and not the actual
uploaded file itself.
> but somehow it's not uploading.
> Ideas?
Read
manual > Handling file uploads
to see how it all works.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Quantity is no substitute for quality, but its the only one we've got.
*/