#40537 [Opn->Fbk]: move_uploaded_file - target directory's name problem

From: Date: Mon, 26 Feb 2007 16:01:50 +0000
Subject: #40537 [Opn->Fbk]: move_uploaded_file - target directory's name problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109572@lists.php.net to get a copy of this message
 ID:               40537
 Updated by:       tony2001@php.net
 Reported By:      stloukal at programator dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: FC4, 2.6.17
 PHP Version:      5.2.1
 New Comment:

"ls -Z" can only work if SELinux is enabled, so you did not turn it
off.



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

[2007-02-26 15:57:02] stloukal at programator dot cz

Error reporting added.

[stloukad@shaman web]$ ls -Z
drwxrwxrwx  root     root                                     bug_test
drwxrwxrwx  root     root                                      tmp

------------------------------------------------------------------------

[2007-02-26 15:49:34] tony2001@php.net

Add error_reporting(E_ALL | E_STRICT) to the beginning of the script.

>I turned SELinux off.
See if ls -Z works for you.

------------------------------------------------------------------------

[2007-02-26 15:44:21] stloukal at programator dot cz

There are no open_basedir (or any other) restrictions for /var/www/web
or var/www/web/bug_test.

Please, could you look at this page
(https://bug_test.devel.gtspartner.cz/index.php)? It contains my script
and phpinfo() output. Maybe, my problem is not in PHP. Should it be
somewhere else? E.g. in Apache or Linux? I turned SELinux off.

------------------------------------------------------------------------

[2007-02-26 15:30:07] tony2001@php.net

Somehow I figured that out myself, thanks.
Please remove open_basedir and see if it makes any difference.

------------------------------------------------------------------------

[2007-02-26 15:28:53] stloukal at programator dot cz

Addition to [26 Feb 3:23pm UTC]: please change the line 7 in script -
use "$path = '../tmp/'.$name;" instead of "$path =
'../../tmp/'.$name;"

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/40537

-- 
Edit this bug report at http://bugs.php.net/?id=40537&edit=1


Thread (31 messages)

« previous php.bugs (#109572) next »