<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 12 Feb 2012 19:44:12 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[AndroidHive: Android Login and Registration with PHP, MySQL and SQLite]]></title>
      <guid>http://www.phpdeveloper.org/news/17487</guid>
      <link>http://www.phpdeveloper.org/news/17487</link>
      <description><![CDATA[<p>
On the AndroidHive site there's a <a href="http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/">recent tutorial</a> (plus screencast) about combining PHP, MySQL and SQLite to act as the backend authorization for your Android application.
</p>
<blockquote>
In my previous article <a href="http://www.androidhive.info/2011/10/android-login-and-registration-screen-design/">Android Login and Registration Screen Design</a> i explained designing the login and registration interfaces, but it has no functionality. In this tutorial i am explaining how to build complete login and registration system in android using PHP, MySQL and SQLite. Also this tutorial covers how to build simple API using PHP and MySQL.
</blockquote>
<p>
<a href="http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/">The tutorial</a> walks you through each step of the process:
</p>
<ul>
<li>Creating MySQL Database and Tables
<li>Building PHP API Classes
<li>Starting Android Project
<li>Making the JSON Parser, SQLite Database Handler and User Functions Classes
<li>Designing the Screens
<li>Switching between Activities
<li>Finally Updating AndroidManifest.xml
</ul>
<p>
If you want to get started quickly, you can just <a href="http://www.box.com/s/kscvgpb1iadv5ppxgrie">download the final result</a> and go.
</p>]]></description>
      <pubDate>Thu, 02 Feb 2012 10:41:21 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Benchmarking pages behind a login with ab]]></title>
      <guid>http://www.phpdeveloper.org/news/17124</guid>
      <link>http://www.phpdeveloper.org/news/17124</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has a recent post showing you how to use the "cookie jar" functionality included with Apache's "ab" benchmarking tool to <a href="http://robertbasic.com/blog/benchmarking-pages-behind-a-login-with-ab/">get behind your PHP-based login</a> with a simple curl and grep combo.
</p>
<blockquote>
Tonight I decided to relax a bit and what better way of relaxing is there for a geek then to do some bash scripting?! So for fun and no profit I decided to try and benchmark pages with <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">ab, Apache HTTP server benchmarking tool</a>, which are behind a login. Turns out, it's pretty easy after reading some man pages.
</blockquote>
<p>
He includes an example of the format of the "cookie jar" and the shell script he used to grab the PHP session ID from it and inject it into the "ab" call. The <a href="https://github.com/robertbasic/blog-examples/tree/master/ab-login">script is on github</a>.
</p>]]></description>
      <pubDate>Mon, 14 Nov 2011 10:12:05 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Liip Blog: Integrating Magento into Symfony2]]></title>
      <guid>http://www.phpdeveloper.org/news/16895</guid>
      <link>http://www.phpdeveloper.org/news/16895</link>
      <description><![CDATA[<p>
On the Liip blog today, there's a quick post about <a href="http://blog.liip.ch/archive/2011/09/21/integrating-magento-into-symfony2.html">integrating Symfony2 and Magento</a>, the popular PHP-based ecommerce platform.
</p>
<blockquote>
So last week <a href="https://github.com/liip/LiipMagentoBundle/contributors">four developers</a> sat together on a regular Hackday to see what's needed to hook up Magento into Symfony. To make this short the outcome is a <a href="https://github.com/liip/LiipMagentoBundle">Magento bundle for Symfony2</a>. When we met in the morning we weren't even sure what exactly to try out but soon agreed on implementing a Symfony authentication which uses the Magento customer database.
</blockquote>
<p>
The post talks about some of the issues they came across in their work - mainly a problem with incompatible autoloaders. There were also problems getting the logins to play nicely with each other and each product's session handling. You can find the current results from their hacking in <a href="https://github.com/liip/LiipMagentoBundle">this bundle</a> posted to github.
</p>]]></description>
      <pubDate>Thu, 22 Sep 2011 12:47:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ade Slade's Blog: Implementing Twitter sign-in with Silex and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16729</guid>
      <link>http://www.phpdeveloper.org/news/16729</link>
      <description><![CDATA[<p>
<i>Ade Slade</i> has written up a quick new post to his blog today showing how you can use the lightweight <a href="http://silex-project.org/">Silex</a> framework to <a href="http://adeslade.co.uk/post/implementing-twitter-sign-in-with-silex-and-php">link your login with Twitter</a> and validate users from their API.
</p>
<blockquote>
For those not acquainted with <a href="http://silex-project.org/">Silex</a>: Silex is a PHP microframework for PHP 5.3 A microframework provides the guts for building simple single-file apps. It's awesome. For the example, I've setup a virtual host of example.local on my development machine.
</blockquote>
<p>
He includes the contents of the .htaccess you'll need to get the rewrite to work for Silex, a link to the <a href="https://dev.twitter.com/docs/auth/oauth">OAuth extension</a> you'll need to install for PHP and the code to make the login and auth routes. You'll need to <a href="https://dev.twitter.com/apps">create a Twitter application</a> for your site to get the OAuth secret key to make the authentication work. You can see the complete code <a href="https://gist.github.com/1148079">here</a>.
</p>]]></description>
      <pubDate>Wed, 17 Aug 2011 09:55:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Anthony Ferrara's Blog: Security Review: Creating a Secure PHP Login Script]]></title>
      <guid>http://www.phpdeveloper.org/news/16670</guid>
      <link>http://www.phpdeveloper.org/news/16670</link>
      <description><![CDATA[<p>
In response to <a href="http://phpdeveloper.org/news/16645">this article from DevShed</a> about creating a "simple and secure login script", <i>Anthony Ferrara</i> has <a href="http://blog.ircmaxell.com/2011/08/security-review-creating-secure-php.html">written up this post</a> to help dispel some of the inaccuracies, bad practices and security issues that could result from DevShed's code.
</p>
<blockquote>
I decided to click the link [in my feed reader] and give the article a read. Not overly shocking was the fact that I didn't find the content of the article to be, how shall I say this..., overly factual. It's not really a "tutorial", but more of a "here's some code that's secure". A quick review of the code found more than one vulnerability, and some significant things that I would change about it (as well as a few "really bad practices").
</blockquote>
<p>
He walks through each of the files included in the original tutorial - Authenticate.php, Register.php and Logout.php - and talks about things like brute force detection, password verification, registration handling and session serialization. He finishes it off with a list of twelve overall issues he noticed during his work along with solutions for each (usually very simple ones too).
</p>]]></description>
      <pubDate>Wed, 03 Aug 2011 12:02:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Devshed: Simple and Secure PHP Login Script]]></title>
      <guid>http://www.phpdeveloper.org/news/16645</guid>
      <link>http://www.phpdeveloper.org/news/16645</link>
      <description><![CDATA[<p>
In <a href="http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script-59941/">this new tutorial</a> on DevShed, they walk you through the creation of a secure login script that uses sha256 encryption, a captcha to prevent automated signups, XSS attack protection and several other features.
</p>
<blockquote>
Recent advancements in PHP offer the developer a variety of tools to improve the security of login systems. [...] This programming tutorial will teach you how to create a simple, yet secure login script utilizing PHP using MySQL and bracing for XSS attack prevention.
</blockquote>
<p>
Other features include no persistent logins, preventing direct file access, an idle timeout on the user session, protection against session fixation and anti-brute force measures. Full (procedural) code is provided as well as screenshots from phpMyAdmin showing the database table structure. You can grab the code for the project <a href="http://www.php-developer.org/php-secure-authentication-of-user-logins/">here</a>.
</p>]]></description>
      <pubDate>Thu, 28 Jul 2011 09:57:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Integrating Two-Factor Authentication with CodeIgniter]]></title>
      <guid>http://www.phpdeveloper.org/news/16519</guid>
      <link>http://www.phpdeveloper.org/news/16519</link>
      <description><![CDATA[<p>
On NetTuts.com today they have a new tutorial showing you how to <a href="http://net.tutsplus.com/tutorials/php/integrating-two-factor-authentication-with-codeigniter/">use two-factor authentication</a> in your CodeIgniter-based application - a login process combining a username/password and access to a device that's authorized for the account.
</p>
<blockquote>
Two-factor authentication is a way of proving your identity based on your username and password as well as a physical device that you can carry with you. This makes it much harder for crooks to steal your identity, since they will need access to your phone or hardware token - not just your login credentials.
</blockquote>
<p>
They've chosen the free service offered by <a href="http://www.duosecurity.com/">Duo Security</a> that lets you approve the device in several ways including a phone call, SMS tokens and push-based authentication. They walk you through the setup of a <a href="http://www.duosecurity.com/pricing">Duo</a> account, making an "Integration", grabbing the <a href="https://github.com/duosecurity/duo_web/tree/master/php">PHP</a> and <a href="https://github.com/duosecurity/duo_web/tree/master/js">Javascript</a> files needed to make it work and changing up your user and administration module to send a <a href="http://openwall.com/phpass/">bcrypted</a> value to the service. They flesh it out with a new version of the view to include the Duo code and generating the signed request.
</p>]]></description>
      <pubDate>Mon, 27 Jun 2011 09:31:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Implementing User Authentication and Session Management with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16352</guid>
      <link>http://www.phpdeveloper.org/news/16352</link>
      <description><![CDATA[<p>
On PHPBuilder.com there's a new tutorial posted showing you how to create a <a href="http://www.phpbuilder.com/columns//user-authentication/Jason_Gilmore05172011.php3">user authentication system</a> that uses sessions to handle the logged in user's information.
</p>
<blockquote>
Outside of installation and configuration issues, reader questions pertaining to user authentication and session management almost certainly rank among the most common I receive on an ongoing basis. The logic itself is pretty straightforward; however, even a simple implementation involves a number of small but important details which aren't always so easy to figure out the first time around. This tutorial serves to dispel much of the confusion by guiding you through the implementation of a simple user authentication feature which will subsequently keep the user logged in via a <a href="http://www.php.net/manual/en/intro.session.php">session</a>.
</blockquote>
<p>
He helps you create the simple login form, a table in MySQL to store the user data in and the PHP script (complete with input filtering) to handle the login. The system also tracks the last login of each user by updating the table with a timestamp each time they successfully log in.
</p>]]></description>
      <pubDate>Wed, 18 May 2011 08:43:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Creating a Modern Looking Animated Login System in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16293</guid>
      <link>http://www.phpdeveloper.org/news/16293</link>
      <description><![CDATA[<p>
New from the Script-Tutorials.com site there's a guide to getting a <a href="http://www.script-tutorials.com/creating-modern-looking-login-system-on-php/">modern looking animated login system</a> working on your PHP application. It uses jQuery to do some of the "modern" bits when the user logs in.
</p>
<blockquote>
Today we will continue PHP lessons, and our article will about creating modern php login system. Possible you already saw similar ways to display login forms, and today we will repeat this by self. In result - it will some small element in your page layout, and after clicking on it - will appear some area, where we will see some welcome message, login form and another useful information. All very user friendly. So, its time to try demo.
</blockquote>
<p>
You can start with the <a href="http://www.script-tutorials.com/demos/67/">live demo</a> or <a href="http://www.script-tutorials.com/demos/67/source.zip">grabbing the code</a> in a package to investigate or you can follow along in the post - full code and styling are provided. 
</p>]]></description>
      <pubDate>Wed, 04 May 2011 09:15:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[phpDevelopment Blog: Zend Framework Tutorial Series: Part 3 '" Login and Signup with (RE)Captcha]]></title>
      <guid>http://www.phpdeveloper.org/news/14783</guid>
      <link>http://www.phpdeveloper.org/news/14783</link>
      <description><![CDATA[<p>
In a new post to his phpDevelopment blog <i>Andrei Gabreanu</i> has added the <a href="http://phpdev.ro/zend-framework-tutorial-series-part-3-login-and-signup-with-recaptcha.html">third part</a> of his Zend Framework tutorial series. This time he looks at using a CAPTCHA image in your form via a call to a Zend_Captcha component.
</p>
<blockquote>
he third part of the tutorial series will present you with a fully functionable solution for a login and signup page that activates a RECaptcha, via Zend_Captcha as a Service, when the user attempts to login/signup 3 times and fails. The tutorial will also show you how to use your models and how to structure your business logic inside your module based application.
</blockquote>
<p>
They help you set up the database configuration information, create a sample layout for the page, work with the authentication and users controllers and, of course, the form. The inclusion of the CAPTCHA is as easy as adding a Zend_Form_Element_Captcha to the Zend_Form instance and setting up the user/signin process.
</p>]]></description>
      <pubDate>Tue, 13 Jul 2010 12:30:32 -0500</pubDate>
    </item>
  </channel>
</rss>

