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 [url]http://bugs.php.net/?id=25563&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25563&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25563&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25563&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25563&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25563&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25563&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25563&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25563&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25563&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25563&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25563&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25563&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25563&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25563&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25563&r=gnused[/url]