file - How does PHP scandir work? -


i need scan directory /home/user/www/site/public_html/application (full path root).
scandir perform 'application' part of full path argument , that's going ok, got list of files , directories result.
interesting how scandir work path 'application'? ain't argument should full path root?
did not found explanation behavior on official php.net, unfortunately.
idea, how works? thanks.

p.s. document_root set /home/user/www/site/public_html

for relative paths bases them on script's current working directory, can find getcwd.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -