Authentication .htaccess .htpasswd

Any help topics that don't fit in the current categories can go here.
Post Reply
Alg0r1thm
Posts: 64
Joined: Mon Sep 12, 2011 7:57 pm

Authentication .htaccess .htpasswd

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Authentication .htaccess .htpasswd

Post 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.
Image
Post Reply