ID: 25563
Updated by: [email]iliaa@php.net[/email]
Reported By: t_lace at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: linux
PHP Version: 4.3.2
New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
[url]http://www.php.net/manual/[/url] and the instructions on how to report
a bug at [url]http://bugs.php.net/how-to-report.php[/url]

The error message is quite clear. Your PHP script cannot write to
/httpdocs/tess.jpg.


Previous Comments:
------------------------------------------------------------------------

[2003-09-16 15:36:28] t_lace at yahoo dot com

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 this bug report at [url]http://bugs.php.net/?id=25563&edit=1[/url]