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
Authentication .htaccess .htpasswd
Re: Authentication .htaccess .htpasswd
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.
No. If you just want to use some code go to hotscript.com or something.Alg0r1thm wrote:And also send me simple Authentication php code that I can use !