List of all users for a shared file (PHP)

HI, sorry for my bad english.

How can I have access to the command which allows me to have the list of all the users for one shared file?

I need this to develop an application but i m stuck. Thank You!