Oh, maybe I was wrong, here's an idea: since PHP is server-side, I don't think entering URLs for getting file contents will work; you will need the absolute path such as
home/username/public_html/dir/dir2/file.php
instead of
http://www.domain.com/dir/dir2/file.php
The first should work, the second shouldn't. Try that, maybe?