Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Tue Mar 28, 2006 12:33 pm Reply with quote

I am getting the following erros when allowing downloads for GR Downloads
Code:
PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpsO5MwY' to 'http://www.mysite.com/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202

[Tue Mar 28 12:28:06 2006] [error] PHP Warning:  move_uploaded_file(http://www.mysite.com/Files/horsefollow.zip): failed to open stream: HTTP wrapper does not support writeable connections. in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
[Tue Mar 28 12:27:37 2006] [error] PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phphn8iXJ' to 'http://www.mysite.com/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
[Tue Mar 28 12:27:37 2006] [error] PHP Warning:  move_uploaded_file(http://www.mysite.com/Files/horsefollow.zip): failed to open stream: HTTP wrapper does not support writeable connections. in /home/********/public_html/modules/Submit_Downloads/index.php on line 202

Can anyone help?
Line 202 is:
Code:
} elseif (move_uploaded_file($imageurl_temp, $cidinfo['uploaddir']."/$imageurl_name")) {

                        chmod ($cidinfo['uploaddir']."/$imageurl_name", 0644);
                        $url = $cidinfo['uploaddir']."/$imageurl_name";
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Mar 28, 2006 12:51 pm Reply with quote

make sure the upload folder have the proper rights ...
 
View user's profile Send private message
blith







PostPosted: Tue Mar 28, 2006 12:56 pm Reply with quote

I did, it is 644
 
hitwalker







PostPosted: Tue Mar 28, 2006 12:59 pm Reply with quote

well thats not good enough...
try 666 first,otherwise 777
 
blith







PostPosted: Tue Mar 28, 2006 1:01 pm Reply with quote

It has to be at least 766 otherwise you cannot open it in Cpanel. Which is odd...
 
hitwalker







PostPosted: Tue Mar 28, 2006 1:04 pm Reply with quote

well you have to give an "outsider" permission to upload something to your root,thats no peanuts.
so it will never work on 644 .
but what has cpanel to do with this?
 
blith







PostPosted: Tue Mar 28, 2006 1:08 pm Reply with quote

When I chmod in Cpanel to any 6**. It locks you out from opening the folder... it kicks you back to root. Additionally, I am still getting the following errors no matter the permissions:
Code:
PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpDmOOTL' to 'http://www.mysite.com/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202

[Tue Mar 28 14:07:50 2006] [error] PHP Warning:  move_uploaded_file(http://www.mysite.com/Files/horsefollow.zip): failed to open stream: HTTP wrapper does not support writeable connections. in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
 
hitwalker







PostPosted: Tue Mar 28, 2006 2:47 pm Reply with quote

But you have to set permissions from within your ftp.
Login with your ftp ,go to that folder and chmod it.
 
blith







PostPosted: Tue Mar 28, 2006 4:23 pm Reply with quote

The folder is at 766 now and it is not working per the errors...
 
hitwalker







PostPosted: Tue Mar 28, 2006 4:55 pm Reply with quote

hi blith...whenever you get back....

simple said..."Relative path" means the file path to where the file is located "relative" to the root..
however it can be like/home/blith/whatever/myfiles
or like .../myfiles
And your error"HTTP wrapper does not support writeable connections" that because you weren't actually opening a file but asking your Web server to fetch a resource and return its contents to you.
You need to specify a file path, not a URL.....

But i dont know where the configuration is in that mod.
Thats why i asked you for a login ,so i could check it myself.
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Mar 28, 2006 11:13 pm Reply with quote

If I read the first error correctly, this folder http://www.mysite.com/Files must be 766 or 777. Have you tried that?
 
View user's profile Send private message
blith







PostPosted: Wed Mar 29, 2006 9:46 am Reply with quote

Raven wrote:
If I read the first error correctly, this folder http://www.mysite.com/Files must be 766 or 777. Have you tried that?

Okay I changed it to 777 and I get the following errors:
Code:
PHP Warning:  move_uploaded_file(): Unable to move '/tmp/phpSPlZEb' to '********/public_html/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202

 PHP Warning:  move_uploaded_file(********/public_html/Files/horsefollow.zip): failed to open stream: No such file or directory in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
 
blith







PostPosted: Wed Mar 29, 2006 10:00 am Reply with quote

Yeah it worked!! I went back and looked and my relative path was incorrect.. thanks Hitwalker!

and thank you Raven for taking a look. You are a true friend who I have never met...
 
blith







PostPosted: Thu Apr 13, 2006 2:59 am Reply with quote

Well it turns out this didn't work. It never did... I do not know what is wrong... can anyone help me. I also have another thread about this... sorry.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©