Q: Chmod not working? I'm running this very simple code:
echo chmod('file_permissions.php', 0664);
echo decoct(fileperms('file_permissions.php'));

I want to make clear that SAFE MODE is OFF, and that im working on windows, running apache on XAMPP server.
Any ideas about what might be going on? 
Update: It only works with the mods 0444 and 0666, anything else doesn't have any effects, i.e. 0777 gets set to 0666.... so odd.
