Re: File upload
| From: | Richard Lynch | Date: | Thu, 04 Jan 2001 21:43:24 +0000 |
| Subject: | Re: File upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32735@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):
I think NT you can right-click on a directory and change its permissions.
In other Win OSes... I dunno.
> Here's my simple uploading script:
> <?PHP
> print ($userfile_name);
>
> if(copy($userfile,"c:\\phpweb\pics"))
You are missing a \ in front of the pics. I think you can use / and not
worry about the escaping.
> {
> print ("File ok");
> }
> else
> {
> print ("Error");
> }
> ?>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>