Forum Moderators: coopster

Message Too Old, No Replies

move_uploaded file. error: openbase_dir restriction

bunch of error...how can to change tmp upload dir?

         

ikbenhet1

9:04 am on Aug 1, 2003 (gmt 0)

10+ Year Member



Hello,

I got these errors below, i copied a dating script from one server to another. This particular part of the script upload's a pic to a directory on the server.

Does anybody know how i can solve this?
Is there a way yo change the temp upload directory from "/tmp/phpHknAe7" into "/usr/local/slash/apache/vhosts/site/httpdocs/dir/"? if yes, how? or another solution maybe?

The errors i got (shortened):

[function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/phpHknAe7) is not within thwe allowed path(s): (/usr/local/slash/apache/vhosts/site/httpdocs) in file.php on line 78
failed to create stream: Operation not permitted in upload.php on line 78
Unable to move '/tmp/phpHknAe7' to [thelocation] in file.php on line 78

I got no access to php.ini, only "www"-root and above. Thanks.

jatar_k

5:06 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what's the code on line 78?

ikbenhet1

5:17 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



I'ts fixed, i got this new host, which responds within 30 minutes, i'm not really used to that, very nice, guess they changed the setting inside php.ini.

if was the fopen($file, "w"); command which did it or was it move_uploaded_file i already forgot, what a releif.

vincevincevince

7:59 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



new host, which responds within 30 minutes

doing well, but do you have...
<cough>engineers on ICQ at my beck and call</cough>

ikbenhet1

8:16 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



No icq.

I woudn't call them anyway, since i started calling my last host they stopped responding to my email for 3 months.Your host wins then huh?, i hope at least mine is cheaper .

hakre

1:37 pm on Aug 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



every hoster should have to fix this fast, if php is offered. because a single user on a shared hosting environment it no able to edit the php.ini. and this would be needed to change the location where uploaded files are temporarily stored (file-upload ini-settings [de3.php.net] and ini_set() function [php.net]).

Xuefer

2:30 am on Aug 3, 2003 (gmt 0)

10+ Year Member



ini_set() will not help, cause script execution is after upload processing