Page 1 of 1

Authentication .htaccess .htpasswd

Posted: Sat Sep 17, 2011 7:28 pm
by Alg0r1thm
Hi brothers ,

I want to create simple Authentication to my specific path with .htaccess file !

I have host in 000webhost.com , please read this :

The /full/path/to/.htpasswd should be changed to reflect the full server path to the .htpasswd file (more on this later). If you do not know what the full path to your webspace is, contact your system administrator for details.

//-----------

My problem is what is the /full/path/to/.htpasswd ????

How can I find it ?

And also send me simple Authentication php code that I can use !

Thanks

Re: Authentication .htaccess .htpasswd

Posted: Sat Sep 17, 2011 10:25 pm
by jacek
You should be able to get the full path from the file manager. Or you could use php's __FILE__ constant
echo __FILE__;
will tell you the full path to the script you use this in.
Alg0r1thm wrote:And also send me simple Authentication php code that I can use !
No. If you just want to use some code go to hotscript.com or something.