Re: How to resolve the stange question about upload files?
| From: | Henri Sora | Date: | Wed, 07 Jun 2000 09:13:24 +0000 |
| Subject: | Re: How to resolve the stange question about upload files? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-268@lists.php.net to get a copy of this message | ||
Hi!
> I've meet a strage question about upload files:
> <html><body><form action="abc.php"
> enctype="multipart/form-data"
> method="post"><input type=file
> name="myfile"></form></body></html>
> in the "abc.php" file,here is my code:
> copy($myfile,$myfile_name);
> But the system tell me that $myfile=//php2 and can't find the file or
So you have similiar problem like I had a couple days ago. Take the
magic quotes of like Joy told or strip the slashes before copying
your file: $myfile_name = stripslashes($input_file);
H
_____________________________________________________________________
http://iki.fi/sora, tel: 040 53 40 405, 03 616 6726 fax: 03 313
92138