Re: [PHP4BETA] Image upload problem
| From: | Teodor Cimpoesu | Date: | Wed, 02 Feb 2000 15:10:19 +0000 |
| Subject: | Re: [PHP4BETA] Image upload problem | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9686@lists.php.net to get a copy of this message | ||
> Paul Danaher wrote:
>
> I am trying to upload image files to our server (PHP4b3, WinNT4.0 &
> IIS 4.0) using the following code:
>
> <FORM ENCTYPE="multipart/form-data" ACTION="upload.php"
> METHOD="POST">
>
> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">
> Send this file: <INPUT NAME="userfile" TYPE="file">
> <INPUT TYPE="submit" VALUE="Send File">
> </FORM>
>
> <?
>
> if(isset($userfile))
> {
> copy($userfile, "C:\images\test.jpg");
I think that should be:
copy($userfile, "C:\\images\\test.jpg");
or
copy($userfile, 'C:\images\test.jpg');
;-)
> }
>
> ?>
>
> The image file does upload but when I try to view it, it is just blank
> even though the size of the file is correct.
>
> Any help would be most appreciated.
>
> Paul
--
CIMPOESU Teodor, Web Programmer
@ DIGICOM S.A. Bucharest, Romania
@ Internet, site development
@ teo@digiro.net , +(401)-330.47.28
official home page ~ http://www.digiro.net/
Internet web page ~ http://internet.digiro.net/