Ask a Question related to PHP Development, Design and Development.
-
t_lace at yahoo dot com #1
#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 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]
t_lace at yahoo dot com 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 [Opn->Bgs]: error uploading file
ID: 25563 Updated by: iliaa@php.net Reported By: t_lace at yahoo dot com -Status: Open +Status: ... -
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

