RE: [PHP-WIN] Open_basedir
| From: | Rich Gray | Date: | Tue, 06 Aug 2002 04:53:35 +0000 |
| Subject: | RE: [PHP-WIN] Open_basedir | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15134@lists.php.net to get a copy of this message | ||
try move_uploaded_file() instead of copy()
HTH
Rich
-----Original Message-----
From: Alexandr Polupanov [mailto:tmhsnake@hot.ee]
Sent: 05 August 2002 12:50
To: php-windows@lists.php.net
Subject: [PHP-WIN] Open_basedir
open_basedir is set on the server. SafeMode is alto turned on. When i'm
trying to copy uploaded file to another directory:
copy($_FILES['userfile']['tmp_name'], "myfile.txt");
i get this error:
Warning: open_basedir restriction in effect. File is in wrong directory in
/home/webhosting/anheltours/vhost/www.site.ee/htdocs/fu/fu2.php on line 11
Is there a special directory for that or something? How can i copy uploaded
file to another directory? Please help me.
Thanks.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php