#25563 [NEW]: error uploading file
| From: | t_lace at yahoo dot com | Date: | Tue, 16 Sep 2003 19:36:28 +0000 |
| Subject: | #25563 [NEW]: error uploading file | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-47660@lists.php.net to get a copy of this message | ||
From: t_lace at yahoo dot com
Operating system: linux
PHP version: 4.3.2
PHP Bug Type: Filesystem function related
Bug description: error uploading file
Description:
------------
i'm using php triad 2.21 there's no error/warning but when i'm uploaded in
my server (php 4.3.2) there's a warning Warning: move_uploaded_file():
open_basedir restriction in effect. File(/httpdocs/tess.jpg) is not within
the allowed path(s): (/home/httpd/vhosts/mku-sby.com/httpdocs:/tmp)
Reproduce code:
---------------
move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'],
"/httpdocs/tess.jpg")
Expected result:
----------------
blank / no warning message
Actual result:
--------------
Warning: move_uploaded_file(): open_basedir restriction in effect.
File(/httpdocs/tess.jpg) is not within the allowed path(s):
(/home/httpd/vhosts/mku-sby.com/httpdocs:/tmp)
--
Edit bug report at http://bugs.php.net/?id=25563&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25563&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25563&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25563&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25563&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25563&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25563&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25563&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25563&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25563&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25563&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25563&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25563&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25563&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25563&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25563&r=gnused