Hello.
Can some one offer me a check file permissions function for PHP to work in both Linux and Windows based systems?

I am able to make a such check for linux but for windows I got wrong values (it doesn't show the true permissions). It must work on both folders and files.
If its possible some to offer me such function I will be grateful.

Thanks in advance.

Normally, fileprems() returns the permission of a file.

What function did you already used, that didn't return the correct value ?

Post your codes here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.