View Full Version : chmod issue

11-13-2006, 10:24 AM
i'm gettin this error while using this code

chmod("vcddb/config.php", 0777);

Warning: chmod() [function.chmod]: Permission denied in c:\Inetpub\wwwroot\php\chmod.php on line 2

can anyone tell me wat to do to solve tis problem

11-13-2006, 12:50 PM
Check your folder permissions. and whether you have write access to the folder.

you can run is_writable to check if you can write to the directory or not.

good luck.

11-13-2006, 01:34 PM
If the directory, vcddb happens to be a subdirectory of where
your script is located, you can try this ...

chmod("./vcddb/config.php", 0777);

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum