Jump to content

ashok

Members
  • Posts

    9
  • Joined

  • Last visited

ashok's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Thanks! It worked.
  2. How do I change directory permissions? Do I have access to do this or do I need to open a support ticket? I understand there is a danger in opening a directory for anyone. How do others do this if they need to allow users to upload files. In my case, I want the site administrator to add items to shopping cart and upload item images.
  3. Hi, I am writing a site where a site admin can upload files. I think I am running into directioy permission issues. I want the site admin to upload files into its images directory. admin authentication is saved in mysql database. Is there a way that I have it uploaded into the "images" subdirectory? Here's the code excerpt: .... $upfile = get_cwd() . '/images/' . $userfile_name; .... if (is_uploaded_file($userfile)) { if (!move_uploaded_file($userfile, $upfile)) { echo 'Problem: Could not move file to destination directory'; return(''); } } This is not working. But, if I change $upfile to /tmp. it works! This leads me to believe that the user does not have write permission to the images directory. Can I change dir permissions?
×
×
  • Create New...