Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP right
left right
foxercom
post Aug 6 2010, 08:50 AM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 6-August 10
Member No.: 151,933



hi! everyone. Can you help me about move_uploaded_file problem. I cannot upload an image in my folder because of this error and also the chmod.
Warning: move_uploaded_file(): Unable to access /profilepix/naruto_login.jpg in /www/clanteam.com/i/s/e/isellitem/htdocs/myprofile.php on line 140
Warning: chmod(): Operation not permitted in /www/clanteam.com/i/s/e/isellitem/htdocs/myprofile.php on line 141 .

heres my php code:
CODE

$dir="profilepix/".$imagename;
move_uploaded_file($_FILES['filepic']['tmp_name'],$dir);
chmod('profilepix/',0777);
Go to the top of the page 
 
  + Quote Post
 
Start new topic
Replies
webbom
post Aug 10 2010, 02:38 PM
Post #2


Newbie
*

Group: Members
Posts: 3
Joined: 10-August 10
Member No.: 152,409



The Warning: chmod() you get is probably because the script doesn't have permission to do that operation.

Have you tried to chmod the directory by ftp. Usually it's safe to leave it at 777.
Go to the top of the page 
 
  + Quote Post
jibon57
post Sep 15 2010, 09:29 AM
Post #3


Newbie
*

Group: Members
Posts: 3
Joined: 15-September 10
Member No.: 157,012



Hi ,
I am also facing a great trouble while upload a file it give me this kinds of message :

Permission denied in /www/zxq.net/j/k/k/jkkniu/htdocs/log in/upload3.php on line 71



I using here this code :
$image_name=time().'.'.$extension;

$newname="images/".$username.$image_name;

$copied = copy($_FILES['image']['tmp_name'], $newname);
Go to the top of the page 
 
  + Quote Post

Posts in this topic

 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 20th May 2013 - 12:01 AM