Re: file upload problem
| From: | nicos@php.net | Date: | Thu, 05 Sep 2002 18:27:37 +0000 |
| Subject: | Re: file upload problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115345@lists.php.net to get a copy of this message | ||
Take a look at
http://www.php.net/manual/sv/printwn/features.file-upload.php,
your pages
should be named .php and not .php3 if you support PHP4.
--
Nicos - CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com - Hébergement de sites Internet
"Ram K" <ram_kapadia@rediffmail.com> a écrit dans le message de news:
20020905181308.31455.qmail@webmail10.rediffmail.com...
> Hey
>
> I have a prob with my php file upload. i am using windows
>
> my html file looks like
> ----
> <HTML>
> <HEAD></HEAD>
> <BODY>
> <FORM ACTION="upload1.php3" METHOD="post"
> ENCTYPE="multipart/form-data">
> Upload the datafile here
> <INPUT TYPE="file" NAME="file">
> <br><br>
> <INPUT TYPE="submit" NAME="Submit" VALUE="Submit Form">
> </FORM>
> </BODY>
> </HTML>
> ----
> my php file looks like
> ----
> <?
> $endresult = "File Was Uploaded";
>
> $newfile = "C:\\upload\\".$file_name;
>
> echo $newfile."<br>";
> echo $file."<br>";
>
> @copy($file, $newfile) or $endresult = "Couldn't Copy File To
> Server";
>
> echo $endresult;
> ?>
>
> ----
> when i run i get an error
> \\php2
> c:\upload\a.gif
> cannot upload file
>
> any ideas why?? also i am not clear as to where the \\php2 comes
> from
>
> thanks in advance
>
> regards
> ram
>
> __________________________________________________________
> Give your Company an email address like
> ravi @ ravi-exports.com. Sign up for Rediffmail Pro today!
> Know more. http://www.rediffmailpro.com/signup/
>