Get the PHP index folder

0

Good afternoon colleagues, I would like to know if there is any way to get the index folder in PHP being in any folder, is there any constant that by mentioning it you can put it before the path of the other folders to get to a specific file?

    
asked by Carlos Daniel Zárate Ramírez 24.06.2018 в 01:16
source

1 answer

0

To get the home page is with:

<?php
echo $_SERVER['SERVER_NAME'];
?>
    
answered by 24.06.2018 в 01:49