ID: 28708 Comment by: arun_ri2003 at rediffmail dot com Reported By: xuefer at 21cn dot com Status: No Feedback Bug Type: Filesystem function related Operating System: * PHP Version: 5CVS, 4CVS Assigned To: helly New Comment:
I can't get the file uploader to work. This is the error I get: Warning: move_uploaded_file(../img/mainpict.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/local/share/doc/vhost/privatebazaar.com/httpdocs/property/editpropimg.php on line 50 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/users/privatebazaar.com/tmp/phpI5aoQZ' to '../img/mainpict.jpg' in /usr/local/share/doc/vhost/privatebazaar.com/httpdocs/property/editpropimg.php on line 50 Previous Comments: ------------------------------------------------------------------------ [2004-11-02 01:00:05] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-10-25 09:39:15] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2004-07-06 16:05:27] [EMAIL PROTECTED] Marcus, this is once again one of those weird bugs caused by your docref crap. ------------------------------------------------------------------------ [2004-06-10 17:06:35] xuefer at 21cn dot com done with CFLAGS="-g" coredump: #0 0x404879ab in zif_move_uploaded_file (ht=2, return_value=0x84a5954, this_ptr=0x0, return_value_used=1) at /home/oursky/src/php4/ext/standard/basic_functions.c:2821 2821 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to move '%s' to '%s'", Z_STRVAL_PP(path), Z_STRVAL_PP(new_path)); Backtrace: --------------- #0 0x404879ab in zif_move_uploaded_file (ht=2, return_value=0x84a5954, this_ptr=0x0, return_value_used=1) at /home/oursky/src/php4/ext/standard/basic_functions.c:2821 #1 0x4052b828 in execute (op_array=0x85ce660) at /home/oursky/src/php4/Zend/zend_execute.c:1635 #2 0x4052b594 in execute (op_array=0x86023f4) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #3 0x40516042 in call_user_function_ex (function_table=0xbfffa0f0, object_pp=0x84a56a8, function_name=0x864641c, retval_ptr_ptr=0xbfff9cec, param_count=4, params=0x84a58cc, no_separation=0, symbol_table=0x0) at /home/oursky/src/php4/Zend/zend_execute_API.c:567 #4 0x404855f7 in zif_call_user_func_array (ht=2, return_value=0x84a572c, this_ptr=0x0, return_value_used=1) at /home/oursky/src/php4/ext/standard/basic_functions.c:1946 #5 0x4052b828 in execute (op_array=0x85294cc) at /home/oursky/src/php4/Zend/zend_execute.c:1635 #6 0x4052b594 in execute (op_array=0x839aa54) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #7 0x4052b594 in execute (op_array=0x85fbed4) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #8 0x4052b594 in execute (op_array=0x85fc08c) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #9 0x4052b594 in execute (op_array=0x8575414) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #10 0x4052b594 in execute (op_array=0x85ec564) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #11 0x4052b594 in execute (op_array=0x831638c) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #12 0x4052b594 in execute (op_array=0x844848c) at /home/oursky/src/php4/Zend/zend_execute.c:1679 #13 0x4051dbfc in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/oursky/src/php4/Zend/zend.c:891 #14 0x404f1c2c in php_execute_script (primary_file=0xbffff680) at /home/oursky/src/php4/main/main.c:1731 #15 0x4053183b in php_handler (r=0x863f840) at /home/oursky/src/php4/sapi/apache2handler/sapi_apache2.c:561 #16 0x080af7e0 in ap_invoke_handler () #17 0x0809164b in ap_process_request () #18 0x0808bd2c in ap_process_http_connection () #19 0x080bc385 in ap_process_connection () #20 0x080af2da in child_main () #21 0x080ae144 in make_child () #22 0x080ae489 in perform_idle_server_maintenance () #23 0x080adaed in ap_mpm_run () #24 0x080b56a1 in main () #25 0x402b0657 in __libc_start_main (main=0x80b4cd0 <main>, argc=3, ubp_av=0xbffffae4, init=0x806693c <_init>, fini=0x80d5540 <_fini>, rtld_fini=0x4100dc54 <_dl_fini>, stack_end=0xbffffadc) at ../sysdeps/generic/libc-start.c:129 Php dump: --------------- "common.function_name: "$1 = 0x40572a5c "move_uploaded_file" ------------------------------------------------------------------------ [2004-06-10 16:01:19] [EMAIL PROTECTED] Are you using thread-safe PHP? Try compiling php with --enable-debug, this should produce a more detailed backtrace. ------------------------------------------------------------------------ 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/28708 -- Edit this bug report at http://bugs.php.net/?id=28708&edit=1