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
Post a Comment