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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nimpa
Forum Newbie
Posts: 3
Joined: Sat Mar 28, 2009 9:29 pm

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

Post 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
nimpa
Forum Newbie
Posts: 3
Joined: Sat Mar 28, 2009 9:29 pm

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

Post by nimpa »

Noone?? :-/

//Jimmy
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

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

Post by php_east »

i'm afraid to click on the link. it looks like a malware link :(
nimpa
Forum Newbie
Posts: 3
Joined: Sat Mar 28, 2009 9:29 pm

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

Post by nimpa »

then google it out to see it´s not an malware.

i have pasted the code into that..

/J
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

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

Post 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.
Post Reply