Page 1 of 1

NEED HELP!! Maybe You will fix this??!! :)

Posted: Sat Mar 28, 2009 9:32 pm
by nimpa
Hi everyone!!

I got this problem, and when i´m an totally newbie in PHP i will try for you to help me.

I got this trouble when i uploading an file..

Warning: rename() [function.rename]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/bygghems:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/bygghems/public_html/Domain.com/uploadvideo.php on line 140

Here is the code:

http://rafb.net/p/G47v5c72.html

Thanx in advance..
Best Regards.

//Jimmy

Re: NEED HELP!! Maybe You will fix this??!! :)

Posted: Sun Mar 29, 2009 10:53 am
by nimpa
Noone?? :-/

//Jimmy

Re: NEED HELP!! Maybe You will fix this??!! :)

Posted: Sun Mar 29, 2009 11:19 am
by php_east
i'm afraid to click on the link. it looks like a malware link :(

Re: NEED HELP!! Maybe You will fix this??!! :)

Posted: Sun Mar 29, 2009 5:44 pm
by nimpa
then google it out to see it´s not an malware.

i have pasted the code into that..

/J

Re: NEED HELP!! Maybe You will fix this??!! :)

Posted: Mon Mar 30, 2009 4:26 am
by php_east
i don't trust google either. anyways, your problem seems to be that the new filename for rename is out of the operating range you are allowed to. your host do not allow that, as likely you are on shared hosting.

so you may wish to check that the new filename does indeed point to within your home directory. this is a fairly normal constraint, also good perhaps to ensure your files are not sent elsewhere.