「PHP入門」realpath()の使い方

//相対パス
$cft = “./data/test.csv”;

//相対パスを絶対パスに変換
echo realpath($cft);

Comments are closed.