Mindaugas Posted January 18, 2010 Share Posted January 18, 2010 Hello friends , i tried looking for topics like this but i couldn`t find what i need. I have a my first project , simple text-browsed game , database is all from TXT files, and i know that some files need to chmod, but when i play it , nothing goes wrong, and i wonder which files need to chmod ? now i think all files has all permissions Link to comment https://forums.phpfreaks.com/topic/188897-php-chmod/ Share on other sites More sharing options...
Mindaugas Posted January 18, 2010 Author Share Posted January 18, 2010 Any help ? I really do not have any idea why chmod is needed Link to comment https://forums.phpfreaks.com/topic/188897-php-chmod/#findComment-997372 Share on other sites More sharing options...
Buddski Posted January 18, 2010 Share Posted January 18, 2010 It was a little hard to pull a question out of your OP.. So you are wanting to know WHY changing permissions on a file is needed? Link to comment https://forums.phpfreaks.com/topic/188897-php-chmod/#findComment-997374 Share on other sites More sharing options...
Mindaugas Posted January 18, 2010 Author Share Posted January 18, 2010 Yes. for example chmod("file", 0644); allows fr admin read and write and for normal user just read. And how php knows who is the admin ? And what is ment by 'admin can write' , so if 0644 is set on, and normal user fills input which saves info in file with 0644 permission , the data won`t be saved because user cant write? Link to comment https://forums.phpfreaks.com/topic/188897-php-chmod/#findComment-997377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.