Re: read file write file??????/
| From: | David Robley | Date: | Tue, 12 Sep 2000 01:07:10 +0000 |
| Subject: | Re: read file write file??????/ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16263@lists.php.net to get a copy of this message | ||
On Tue, 12 Sep 2000, Ramiro Radjiman wrote:
> Hello all,
>
> I have a problem here.
> I want to upload a file to a provider.
>
> This is the way i thought it should work but it ain't.
>
> $imagedata = fread(fopen($userfile, "r"), filesize($userfile));
> fclose (fopen($userfile,"r");
> fwrite(fopen ($filename,"w"), $imagedata);
> fclose (fopen ($filename,"w"));
>
>
> but this does not work help please.
>
If you are trying to uplosad files to a remote server, you need to look at
http://www.php.net/manual/features.file-upload.php
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA