| | |
Chmod with a timer
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2008
Posts: 43
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jan 2008
Posts: 141
Reputation:
Solved Threads: 19
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.
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.
![]() |
Similar Threads
- Debian Linux xserver configuration (Window and Desktop Managers)
Other Threads in the PHP Forum
- Previous Thread: transfer to a new page through a select event
- Next Thread: PHP Tables
| Thread Tools | Search this Thread |
ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu method mlm multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validator variable video web xml youtube





