Re: [PHP3] upload in safe mode
| From: | Jeffrey Barendse | Date: | Thu, 15 Jun 2000 13:11:03 +0000 |
| Subject: | Re: [PHP3] upload in safe mode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1930@lists.php.net to get a copy of this message | ||
> Hi,
>
> 1)is it possible to manage upload in safe_mode? I mean uploading the
> image and then copy the temporary file in the final destination.
Yes you can. the only MUST is that you have writing rights to the temp
directory. If you don't know what the temp dir is on the server run <?
phpinfo(); ?> and look at the UPLOAD_TMP_DIR variable. Keep in mind that
your are mostly user NOBODY in save mode (you can also see this info in the
phpinfo option) and that NOBODY needs rights to the UPLOAD and the
destination dir. I mostly use "." as the UPLOAD_TMP_DIR. So the user has
only access to upload files to his own directory (from where he is running
the script).
>
> 2)Is it possible to do un upload form that will be sent as an email with
> attachment? (in safe_mode or not)
Yes it's possible. I have a example in a book (Professional PHP programming
from Wrox). You must use the mail function from PHP. Let me know if you need
an example than I can scan the source for you.
>
> Thanks
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
I hoop this information is useful for you,
Jeffrey Barendse