File upload
| From: | Mike Yuen | Date: | Wed, 03 Jan 2001 03:57:42 +0000 |
| Subject: | File upload | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32461@lists.php.net to get a copy of this message | ||
Can anyone tell me how to set permission for a file to write to a
directory (ie: phpweb\pics):
Here's my simple uploading script:
<?PHP
print ($userfile_name);
if(copy($userfile,"c:\\phpweb\pics"))
{
print ("File ok");
}
else
{
print ("Error");
}
?>