How in php to open a file in the directory using fopen?

$file = fopen("/users/$user_name.php", "a+t");
So opens the file with the same name "/users/$user_name.php" and I too have to open a file in the directory users
June 27th 19 at 15:09
1 answer
June 27th 19 at 15:11
Gee Gee
well get the normal file name

fopen("/users/".$user_name.".php"

Find more questions by tags PHP