Jump to content

PHP chmod


Mindaugas

Recommended Posts

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 :D

Link to comment
https://forums.phpfreaks.com/topic/188897-php-chmod/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.