How to check the directory for a match with another directory?
Compare their full ways, for example.
if ( realpath($dir1) == realpath($dir2) ) {}
A running script must have startup rights on all directories in the hierarchy being checked, otherwise realpath () will return FALSE.
Source: https://ru.stackoverflow.com/questions/632689/More articles:Text file contains words. Enclose words beginning with a consonant in double quotesHangs up page from a large number of How to replace one character to another in the address bar?How to pass a tree to draw on the HTML pageThe implementation of sorting by countingHow to create a dictionary with the name of the organization, TIN and OGRNRate the layout [closed]Paginator Displayed in regular numbers. Make a mapping buttonParsing Json with NewtonsoftI do not see an error in the regular expressionAll Articles