954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Chmod with a timer

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

yasmena
Light Poster
45 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

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.

blocblue
Posting Pro in Training
475 posts since Jan 2008
Reputation Points: 142
Solved Threads: 79
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You