Most Popular Editor Picks

Home » ASP » Auctions

Added: 03.18.2008

145 views

Michael L

I have nothing to say

read full biography
all aticles by Michael
Print this article
Add to favorite
Tell a friend

Using PHP to Change the Permissions

Sometimes it's useful to enable visitors to your site to upload content, for example, photos, which can then be displayed on the site.

Folders on a website, for example, an images folder will typically have permissions of 755, which means that normal visitors to the site will be unable to upload content into the folder. They will receive an error message when they try to do so.

In order to allow the upload, one solution is to temporarily change the permissions on the folder to 777 before the upload is made, and then to change them back to 755 after the upload has been made.


Related Articles

Grails for Ajax
When Ajax was introduced to the early and experienced develo
Using PHP to Change the Permissions
Sometimes it's useful to enable visitors to your site to upl
Introducing Asynchronous JavaScript
Using JavaScript technology, an HTML page can asynchronously
PHP Password Function
When developing a web application that enables users to regi
Developer Center | Contact Us | About Us | Link to Us | Advertising Info | Terms of Use | Privacy Policy
Copyright © 2007 - 2008 Script River Network ®. All rights reserved.