Let’s say i allow the user to upload a file to my website.
Using php, i am giving this an address,
$pic = '/~start/B7/images/456.jpg'
how can i chmod this file to make it readable using php?
I have tried chmod ($pic, 0705); but that doesn’t seem to work. Thanks for the help.
The
execfunction will allow you execute shell commands. Try this: