Folder Permission and PHP image Upload
Posted: Wed Sep 16, 2009 11:50 pm
Hello,
I know how to make a php script to upload an image, store the info in a db and all, but you have to manually go and change the permission of the directory that you want to upload your images to.
Is there a way to use a script to change that folders directory permissions with an install file or something?
I am building a fully customizable website with php for someone and want them to just upload the folder (entire site) i give them, and then be able to start adding all their info and be able to upload images with out having to worry about whether or not the upload folder has the right permissions to be able to upload to.
Can some one please help me with this? Thank you in advance.
I know how to make a php script to upload an image, store the info in a db and all, but you have to manually go and change the permission of the directory that you want to upload your images to.
Is there a way to use a script to change that folders directory permissions with an install file or something?
I am building a fully customizable website with php for someone and want them to just upload the folder (entire site) i give them, and then be able to start adding all their info and be able to upload images with out having to worry about whether or not the upload folder has the right permissions to be able to upload to.
Can some one please help me with this? Thank you in advance.