UNIX wrapper in PHP

For a simple web application, I would like to take advantage of some UNIX features that are stable, have a long history, and have proven themselves in production, rather than writing their own code. Take users for example. Instead of having the entire permission infrastructure for users, groups, in my web application, I would like to be able to simply copy over equivalent UNIX functions.

Is there a PHP library that will allow me to register users, register them, manage permissions, etc.?

+3
source share
4 answers

Based on your comment, to cancel the answer, are you looking for something like a PHP file system function ?

Then there is a system and related functions that provide access to Unix commands, but I would recommend other ways of doing things, if possible.

Edit: in response to comments about the need to use user and group functions:

  • Firstly, if your plan allows web users to access the entire file system (or even their regular journal directories), I just want to advise against this - there are a lot of security problems (for example, if someone else ends up with an account user, they can delete everything that they have access to).
  • , PHP, . SQL . SSL, - .
  • Apache, . , , , Apache - , - . , Apache .
+1

, . , .htaccess. OTOH URL-, UNIX.

+2

php - root, .

php .

+1

, Kerberos Radius php. , .

+1

Source: https://habr.com/ru/post/1712176/


All Articles