uploading images
| From: | Tyler Longren | Date: | Mon, 23 Jun 2003 21:43:07 +0000 |
| Subject: | uploading images | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152541@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to upload a small image via a form. This code worked with php
versions prior to 4.1.0. I assume it would still work if register_globals
was turned on.
Here's the error:
Warning: fread(): supplied argument is not a valid stream resource in
/home/sites/site2/users/tyler/web/upload.php on line 28
And here's line 28:
$data = fread(fopen($_POST['binFile'], "r"),
filesize($_POST['binFile']));
Am I doing that correctly? If you need to see more code, let me know.
Thanks everyone!
Tyler Longren