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

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.

commented: Good all round post +4
commented: Good Points :) +3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.