Created
January 23, 2017 12:27
-
-
Save gouf/737c9388d4ad7f9414b0498d31e935c4 to your computer and use it in GitHub Desktop.
一つ上のディレクトリのファイルを、絶対パスとして表示
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo realpath(dirname(__DIR__ . '/../')) . '/foo.php'; | |
echo "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment