php - "Failed to open stream: Permission denied" only absolute path, relative path works -


i'm facing curious problem, if try read file using relative path works, if use , absolute path throws "permission denied"

works:

include './test.php'; 

permission denied:

include '/var/www/test.php'; 

i've tried of course via command line , paths correct. have vague memory of reading permissions of parent folders in case of absolute path, can't find back.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -