目標:

/var/www/connie/test.php

output = "/var/www/connie/test.php"

echo __FILE__;

output = "test.php"

echo basename(__FILE__);

output = "test"

echo basename(__FILE__, '.php');

output = "/var/www/connie"

echo dirname(__FILE__);

output = "/var/www/" (parent folder)

echo dirname(dirname(__FILE__));

トラックバック

このブログ記事に対するトラックバックURL:

コメント & トラックバック

No comments yet.

Comment feed

コメントする

Smiley face

December 2023
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31