By continuing your navigation on this site, you accept the use of cookies to offer you contents and adapted services. Legal Notice.

GuppY Help Center, help online, documentation and tutorials


You are here :   Welcome » Finding the absolute path of a directory.
Preview  Print...  Print this page...
Preview  Print...  Print this section...



FAQ GuppY v 5.02.xx

Here you will find FAQs on Guppy version 5.02.xx.


FAQ system

These FAQs address issues related to hosting and the system in general.


In this box you will find documentation and tutorials


Online help


Here you will find important information regarding regulations and copyright


Finding the absolute path of a directory.

rss This article is available in the standard RSS format for publication on your website :

In case of problems with the path in htaccess and htpasswd, if you need to know the absolute path of a directory, it is quite simple: the realpath() function does just that.

Just create a php file that can be called e.g. absolute-path.php and will contain:

<?php echo realpath ('absolute-path.php');>

This file will be placed in the folder where the htpasswd is. In our example, we use the admin folder but this can be done to any other folder to protected.

To get the result - i.e. the path you need to know - simply type : http://name_of_your_site.ext/admin/absolute-path.php into  the address bar of your browser.

You will of course replace "name_of_your_site.ext " by the actual name of your site. For example here .

Creation date : 23/01/2012 @ 11:24
Category : - Htaccess
Page read 14924 times

You are here :   Welcome » Finding the absolute path of a directory.


 3361708 visitors

 5 visitors online


On each page in admin, if you click on this icon, you get the online help page.

Site registered in the CNIL under agrément 1040387.
You have a right of access, modification, rectification and deletion
of the data according to the Computer law and Freedom (article 34) of January 6th, 1978.