Php - Chmod Not Working -


using chmod want change chmod values of files user. not work. code is;

$chmod = "0777"; chmod($filename, $chmod); 

i entering chmod 777. chmod value of file 1411. tried chmod 0777, 777, 00777. result same.

the problem has data conversion.

$chmod = "0777"; chmod($filename, octdec($chmod)); 

by passing in $chmod string converted 777 witch not giving want. octdec("0777") output 511 decimal give chmod value want.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -