[Solved] Get the name of the parent folder in html [closed]


Change your index.html to index.php. and add this line of code.

<h1><?php echo basename(__DIR__); ?></h1> 

2

solved Get the name of the parent folder in html [closed]