<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Md Emran Hasan (phpfour) - Latest Comments in Htpasswd protection library for Code Igniter</title><link>http://phpfour.disqus.com/</link><description>This is Emran Hasan's blog for PHP, CSS, XHTML, JavaScript, Web 2.0, AJAX, Usability, and Web Standards related views, ideas, and sharing.</description><language>en</language><lastBuildDate>Wed, 03 Sep 2008 04:30:08 -0000</lastBuildDate><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838812</link><description>@Sanjeev: This library will actually check user authenticity using .htaccess method, so login.php would not be needed.&lt;br&gt;&lt;br&gt;After a successful subscription through your registration form OR admin panel, take an array of all the valid users from DB and use the class to create the .htaccess file for the folder. &lt;br&gt;&lt;br&gt;Also, when a subscription is over, OR an user is deleted from admin panel, do the same to update the .htacess file.&lt;br&gt;&lt;br&gt;Hope this helps.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phpfour</dc:creator><pubDate>Wed, 03 Sep 2008 04:30:08 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838811</link><description>I am creating a subscription site for my client, on successful login authentication user will access the subscribed page. Here the user gets authenticated form /subscribe/login.php and accessing page is in /accessfolder/page.html. Now how to check the user is authenticated (using login.php). dont want to use any auth.php or script. it should be happen using the .htaccess or .htpasswd</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sanjeev</dc:creator><pubDate>Wed, 03 Sep 2008 04:25:12 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838802</link><description>Hasan,&lt;br&gt;&lt;br&gt;Study is almost done...final exams of the last sems remaining and then the internship.&lt;br&gt;&lt;br&gt;Company is doing well by the grace of Almighty. We're working with cool, new stuffs and discovering new things every now &amp;amp; then. And our 2nd recruitment is going on, possibly new team will start from Oct 1.&lt;br&gt;&lt;br&gt;Will come to swi next week, will meet then. Take care!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phpfour</dc:creator><pubDate>Sun, 19 Aug 2007 05:36:26 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838803</link><description>hi emran bhai,&lt;br&gt;thank you for mentioning about the Code Ignitor specific convention. i didn't know that, how is going everything ? how is going study and new company ???&lt;br&gt;&lt;br&gt;hope will c you soon.&lt;br&gt;&lt;br&gt;best wishes,</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhm tanveer hossain khan (hasa</dc:creator><pubDate>Sun, 19 Aug 2007 05:25:02 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838805</link><description>Hello Hasan,&lt;br&gt;&lt;br&gt;Thanks for your suggestions ! I will keep the @author thing in mind for future use.&lt;br&gt;&lt;br&gt;Regarding the controller name, Code Igniter requires writing controller name without the Controller suffix, as this becomes a part of the url:&lt;br&gt;&lt;br&gt;&lt;a href="http://www.domain.com/protect/index" rel="nofollow"&gt;http://www.domain.com/protect/index&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks for your comments, its been long you've visited my blog :)&lt;br&gt;&lt;br&gt;Cheers!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phpfour</dc:creator><pubDate>Sat, 18 Aug 2007 06:01:55 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838804</link><description>oh by the way, &lt;br&gt;you don't need to put @author tag with every function :)&lt;br&gt;&lt;br&gt;instead try once on the top class level.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhm tanveer hossain khan (hasa</dc:creator><pubDate>Sat, 18 Aug 2007 05:54:38 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838806</link><description>hi bro,&lt;br&gt;nice to see you continuing your blog :)&lt;br&gt;&lt;br&gt;just a small tip - &lt;br&gt;"class Protect extends Controller"&lt;br&gt;as i can see your "Protect" class  has extended "Controller"&lt;br&gt;&lt;br&gt;so you should name like this - &lt;br&gt;"ProtectedController"&lt;br&gt;or "SecureController"&lt;br&gt;or "AuthenticateController"&lt;br&gt;&lt;br&gt;hope that will be in help.&lt;br&gt;&lt;br&gt;best wishes,</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nhm tanveer hossain khan (hasa</dc:creator><pubDate>Sat, 18 Aug 2007 05:52:15 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838798</link><description>Hello Mr. Saidur,&lt;br&gt;&lt;br&gt;Thanks for your reply. I've just found the problem - while Code Igniter loads any library, it puts the name in small case. So, instead of calling $this-&amp;gt;AuthHtpasswd-&amp;gt;protect(..), please call $this-&amp;gt;authhtpasswd-&amp;gt;protect(..).&lt;br&gt;&lt;br&gt;I have made change to the code and re-uploaded it.&lt;br&gt;&lt;br&gt;Thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phpfour</dc:creator><pubDate>Tue, 24 Jul 2007 10:03:16 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838797</link><description>This example and article is very nice. However i get a problem when i run the code in the line  $this-&amp;gt;AuthHtpasswd-&amp;gt;protect(.....)&lt;br&gt;but i check the $this-&amp;gt;load-&amp;gt;library('AuthHtpasswd');&lt;br&gt;is ok . But i do not know why it gets error. However to check your example i try it different way $auth=new AuthHtpasswd();&lt;br&gt;and it works. but i know it must be work , in the way done. Can u   tell me what type mistake may be i have done to run your script. &lt;br&gt;Thanks &lt;br&gt;&lt;a href="http://saidur.wordpress.com" rel="nofollow"&gt;http://saidur.wordpress.com&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saidur Rahman</dc:creator><pubDate>Tue, 24 Jul 2007 09:35:23 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838801</link><description>It's a nice thing I think but I've no time to see it.&lt;br&gt;&lt;br&gt;Thanks! :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jahed</dc:creator><pubDate>Mon, 23 Jul 2007 10:27:43 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838800</link><description>Done. Thanks for the suggestion :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phpfour</dc:creator><pubDate>Mon, 23 Jul 2007 07:17:48 -0000</pubDate></item><item><title>Re: Htpasswd protection library for Code Igniter</title><link>http://www.phpfour.com/blog/2007/07/23/htpasswd-protection-library-for-code-igniter/#comment-2838799</link><description>Thats a great article Emran. Keep it up. But can you rename the clas like something&lt;br&gt;&lt;br&gt;ServiceAuthentication&lt;br&gt;&lt;br&gt;or &lt;br&gt;&lt;br&gt;AuthHtpasswd</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hasin Hayder</dc:creator><pubDate>Mon, 23 Jul 2007 06:55:18 -0000</pubDate></item></channel></rss>