943,678 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 543
  • PHP RSS
Oct 26th, 2008
0

Chmod with a timer

Expand Post »
Hi , i need help with me Joomla site ,
i need to make the file permission of the images folder set to 777 only during uploading and afterwards make it set to 755
i need to make also a timer that times out after a period i specify and disable uploading(make folder 777) if the user exceeds the uploading time
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
yasmena is offline Offline
45 posts
since May 2008
Oct 29th, 2008
2

Re: Chmod with a timer

Hi Yasmena,
Why would you want to change the permissions of your image directory to 777? That would mean that anyone visiting your site, who goes to upload an image would be able to delete all images from that directory! Is that what you really want?

When PHP processes an upload, it stores the file in the tmp directory, which you can then move across to a directory of your choice. If your PHP script does the transfer, it should have the correct permissions to move the file.

R.
Reputation Points: 101
Solved Threads: 74
Posting Pro in Training
blocblue is offline Offline
427 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: transfer to a new page through a select event
Next Thread in PHP Forum Timeline: PHP Tables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC