Warning: include(../plugins/glossaire/conf_defaut2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29

Warning: include(): Failed opening '../plugins/glossaire/conf_defaut2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29

Warning: Undefined variable $res_group in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33

Warning: Trying to access array offset on value of type null in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33

Warning: include(../plugins/glossaire/gloss_inc1.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36

Warning: include(): Failed opening '../plugins/glossaire/gloss_inc1.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36

Warning: include(../plugins/glossaire/gloss_mob_inc2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37

Warning: include(): Failed opening '../plugins/glossaire/gloss_mob_inc2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
GuppY Help Center

  Welcome 
Finding the absolute path of a directory.

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 freeguppy.org: www.freeguppy.org .
 


Creation date : 10/02/2014 @ 21:58
Last update : 10/02/2014 @ 21:58
Category : Htaccess
Page read 20753 times
Top

© 2004-2024

Document generated in 0.02 second