Ask a Question related to PHP Development, Design and Development.
-
iliaa@php.net #1
#25563 [Opn->Bgs]: error uploading file
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]
iliaa@php.net Guest
-
Error uploading file
If you have a slow connection, uploading 2.8 MB might take longer than 300 seconds. You could try setting the max_execution_time to 0 (unlimited)... -
Error when uploading file
I am trying to write code to allow my users to upload a file. The code I am using is as follows: Dim upfilename As String = "" If... -
Web Service: Uploading files and setting file security on a file server
I have written a web service that provides the following methods: UploadFile SetNTFSSecurity Their purpose is to allow a user to Upload a file... -
#25563 [NEW]: error uploading file
From: t_lace at yahoo dot com Operating system: linux PHP version: 4.3.2 PHP Bug Type: Filesystem function related Bug... -
uploading a file
Hi all! I have used code below to upload file but I receive an error on last row of code telling me ( method not allowed ) is it about iis or...



Reply With Quote

