take a look at this fuction:
chmod($pro_imgpath,0777);
<?php
// Read and write for owner, nothing for everybody else
chmod("test.txt",0600);
// Read and write for owner, read for everybody else
chmod("test.txt",0644);
// Everything for owner, read and execute for everybody else
chmod("test.txt",0755);
// Everything for owner, read for owner's group
chmod("test.txt",0740);
?>
And 777- Everybody (i.e. others) has full rights.
Last edited by Shanti C; Sep 24th, 2008 at 5:29 am.
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Offline 1,641 posts
since Jul 2008