Jump to content

DannyTip

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DannyTip's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I guess ill have to create the directory via ftp using php instead.
  2. Thankyou [code]$array = array_values($array);[/code] is exactly what i needed :)
  3. Im using natcasesort() to sort an array of image files.  This works great but i want a method of skipping to the next/previous image file.  But the problem is that when the array is sorted it doesnt reset the internal pointer i.e. [code][0] => DSC00346.jpg [42] => DSC00347.jpg [47] => DSC00351.jpg [40] => DSC00353.jpg [6] => DSC00354.jpg [7] => DSC00355.jpg [36] => DSC00356.jpg ...[/code] I know i could use key() to get the pointer for say 'DSC00354.jpg' but is there anyway to get the one for the record after? Or simply reset the pointers so they are still in order.
  4. After some playing around and realising i was uploading the wrong file  :'( 766 is producing a chmod of 744 777 is producing a chmod of 755 666 is producing a chmod of 644
  5. I tried 0766 and 0777 but the directory created still seams to be 755 according to my ftp client.
  6. Im using php to create a directory on the server when a user on my script is added. Using the following.. [code]mkdir("../client/images/".$imgdir."/", 0755); mkdir("../client/images/thumbnails/".$imgdir."/", 0755);[/code]All this works prefectly fine.  The problem comes when the user then tries to log in via ftp and upload files into this directory to which permission denied errors are returned.  Its possible for the user to delete the directory fine but they are not allowed to upload files into it.  Is there anyway arround this? Im guessing its a problem todo with users where 'apache' owns the directory.  but surely the permission 755 allows any user to read/write ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.