<?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>Thu, 20 Jun 2013 07:09:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Design Aeon: Check Dead Links From Database Using PHP CURL]]></title>
      <guid>http://www.phpdeveloper.org/news/18105</guid>
      <link>http://www.phpdeveloper.org/news/18105</link>
      <description><![CDATA[<p>
On DesignAeon.com there's a recent tutorial posted showing you how to extract URLs from your database and <a href="http://www.designaeon.com/check-dead-links-from-database-using-php-curl/">determine which ones are "dead"</a> automatically with the help of <a href="http://php.net/curl">cURL</a>.
</p>
<blockquote>
Checking Deadlinks From the database manually is a Headache ,So why not use a script which return the http status of the particular link and tell us if the link is dead or not.So how do we check the dead links from the database ? How do we programatically  check whether the link is dead or not ? To check broken or dead links from Database we will use curl .
</blockquote>
<p>
Included in the post is a <a href="http://www.designaeon.com/check-dead-links-from-database-using-php-curl/">sample script</a> that extracts the URLs from a field in the database (you'd need some extra smarts if you're pulling it from content) and running it though a "checklink" function. If the call to <a href="http://php.net/curl_getinfo">curl_getinfo</a> returns false, the link is marked dead.
</p>]]></description>
      <pubDate>Mon, 18 Jun 2012 09:45:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tales of a Coder: What are the Essential PHP/Javascript/Web Development Feeds?]]></title>
      <guid>http://www.phpdeveloper.org/news/17315</guid>
      <link>http://www.phpdeveloper.org/news/17315</link>
      <description><![CDATA[<p>
On the "Tales of a Coder" blog today there's a new post trying to gather some of the more popular web resources for PHP, Javascript and general web development and <a href="http://codertales.wordpress.com/2011/12/28/what-are-the-essential-php-javascript-web-development-feeds/">provide a set of links</a> to make them easier to get to.
</p>
<blockquote>
What feeds do the super star PHP/ JavaScript web developers subscribe to?  What are the essential PHP/ JavaScript/ Web Development feeds? I have shared my fledgling list below.  Many of these feeds were recommended by my friends at <a href="http://www.phpwomen.org/">PHPWomen</a>, others I somehow stumbled across myself and some I picked up from articles tweeted with the #linktuesday hashtag, which are <a href="http://linktuesday.com/">aggregated here</a>. 
</blockquote>
<p>
So far, the links include <a href="http://www.phparch.com/feed/">php|architect</a>, <a href="http://www.planet-php.org/rss/">Planet-PHP.net</a>, the <a href="http://feeds.yuiblog.com/YahooUserInterfaceBlog">YUI blog</a>, <a href="http://feeds.feedburner.com/mattgemmell/rss2">Matt Gemmell's blog</a> and <a href="http://www.goer.org/Feeds/journal.atom">Evan Goer's blog</a>. If you have others to share, be sure to <a href="http://codertales.wordpress.com/2011/12/28/what-are-the-essential-php-javascript-web-development-feeds/#comments">leave them in the comments</a>!
</p>]]></description>
      <pubDate>Wed, 28 Dec 2011 10:07:53 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: How not to create a Random string]]></title>
      <guid>http://www.phpdeveloper.org/news/15498</guid>
      <link>http://www.phpdeveloper.org/news/15498</link>
      <description><![CDATA[<p>
In <a href="http://www.codediesel.com/php/how-not-to-create-a-random-string/">this latest post</a> to his blog, <i>Samer Borate</i> talks about how not to create random strings and how, if you're not careful, it could backfire on you.
</p>
<blockquote>
It is surprising to see how after all the code floating around people still find it hard to create random numbers. In a recent piece of code I encountered, the following was used to generate a string of random numbers. The code was written to provide a random string to be passed to a email verifier system - the type wherein a new user when he subscribes to a website needs to verify his email by clicking on a provided link.
</blockquote>
<p>
He includes a snippet of the code that uses a call to <a href="http://php.net/str_shuffle">str_shuffle</a> on the set of numbers 1-10 to generate a random number. The only problem with the method is that, when the number gets large enough, PHP would automatically kick it into exponential format - not exactly ideal for an email link. Let this serve as a reminder for any scripts you might make that are similar.
</p>]]></description>
      <pubDate>Fri, 26 Nov 2010 10:18:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Build a PHP Link Scraper with cURL ]]></title>
      <guid>http://www.phpdeveloper.org/news/13850</guid>
      <link>http://www.phpdeveloper.org/news/13850</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's <a href="http://www.phpbuilder.com/columns/marc_plotz011410.php3">a new tutorial</a> posted about building a link scraping script with the combination of PHP and <a href="http://curl.haxx.se/">cURL</a> (the script pulls in a page, grabs all of the links off of it and follows them, etc).
</p>
<blockquote>
I actually built this a few years ago because I had grandiose visions of becoming the next Google. Clearly, that did not happen, mostly because my localhost, database, and bandwidth are not infinite. Yet this little robot has quite interesting applications and uses if you really have the time to play with and fine-tune it.
</blockquote>
<p>
You'll need to have <a href="http://php.net/curl">cURL support</a> built into your PHP installation to get the scripts working, but the actual code itself is pretty simple. Curl and XPath do most of the heavy lifting of finding and following the links and its easy enough to drop them into a MySQL table from there. You can <a href="http://www.phpbuilder.com/columns/PHP_LinkScraper_source.zip">download the source here</a>.
</p>]]></description>
      <pubDate>Fri, 15 Jan 2010 10:02:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Creating an Advanced Password Recovery Utility]]></title>
      <guid>http://www.phpdeveloper.org/news/12463</guid>
      <link>http://www.phpdeveloper.org/news/12463</link>
      <description><![CDATA[<p>
On the NETTUTS site today there's <a href="http://net.tutsplus.com/tutorials/php/creating-an-advanced-password-recovery-utility/">a new article</a> (continuing on from <a href="http://www.phpdeveloper.org/news/12229">this tutorial</a>) looking at how to make a "forgot your password" system to add on to their current login technique.
</p>
<blockquote>
In my last tutorial, '<a href="http://net.tutsplus.com/tutorials/php/a-better-login-system/">A Better Login System</a>', a few people commented on how they would like to see a tutorial on password recovery, which is something you don't always see in user access tutorials. The tutorial I am bringing you today will deal with just that. Using mySQLi, we will learn to recover unencrypted and (one-way) encrypted passwords. 
</blockquote>
<p>
They give you what you'll need to set up the database for the user information and the PHP code you'll need to connect to it and fetch the user's information. The script then generates an email with a custom link that will take the user to a page asking them to answer a security question before they can continue.]]></description>
      <pubDate>Wed, 06 May 2009 08:47:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[TotalPHP.com: How to Read an RSS Feed with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/12387</guid>
      <link>http://www.phpdeveloper.org/news/12387</link>
      <description><![CDATA[<p>
New on the TotalPHP blog today is <a href="http://www.total-php.com/article/19/how-to-read-an-rss-feed-with-php-5/">this article</a> talking about reading RSS feeds with PHP (more specifically with <a href="http://php.net/simplexml">SimpleXML</a>).
</p>
<blockquote>
PHP 5's ability to read XML files is fantastically easy to use. In the past it was possible but it required quite a bit of long winded code to get any where. PHP 5's SimpleXmlElement function makes working with XML a breeze, and with much less code too! 
</blockquote>
<p>
They include a script as an example - five lines to completely parse and pull the title and link information out of the remote RSS file. The example creates a SimpleXML object using the feed's URL and makes each element inside accessible as an object (that can be looped through and properties can be checked on).
</p>]]></description>
      <pubDate>Wed, 22 Apr 2009 11:15:16 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[phpPro.org: Embedding PHP In CSS]]></title>
      <guid>http://www.phpdeveloper.org/news/12330</guid>
      <link>http://www.phpdeveloper.org/news/12330</link>
      <description><![CDATA[<p>
New on the phpPro site is <a href="http://www.phpro.org/articles/Embedding-PHP-In-CSS.html">this article</a> looking at a technique for embedding PHP inside of your CSS files and have it correctly interpreted.
</p>
<blockquote>
Perhaps one of the most frustrating aspects of using PHP with websites, is getting variables into CSS. Having variables stored in an ini file, config file or even a database can make the updating of the look and feel of a site simple, however, CSS files, by default, do not parse PHP. [...] A html file may also include a PHP file, in the same manner as it includes a CSS file. This means the stylesheet can be renamed from style.css to style.php.
</blockquote>
<p>
Using this method, the PHP inside the file is parsed and, because its included with a link tag, the CSS is also made available to the rest of the page.
</p>]]></description>
      <pubDate>Mon, 13 Apr 2009 12:05:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: The Rev=Canonical Debate]]></title>
      <guid>http://www.phpdeveloper.org/news/12327</guid>
      <link>http://www.phpdeveloper.org/news/12327</link>
      <description><![CDATA[<p>
This past weekend there was quite a bit of discussion around the "rev=canonical" proposal (<a href="http://revcanonical.appspot.com/">see here</a>) and how, despite the advantages (URL shortening) it seems to have there are still some downsides to be considered. Here's what some of the PHP community have been saying:
</p>
<ul>
<li><i>Ben Ramsey</i>:
<ul>
<li><A href="http://benramsey.com/archives/a-revcanonical-rebuttal/">A rev='"canonical'" Rebuttal</a>
<li><a href="http://benramsey.com/archives/summarizing-my-revcanonical-argument/">Summarizing My rev='"canonical'" Argument</a>
<li><a href="http://benramsey.com/archives/specifying-revcanonical-with-http/">Specifying rev='"canonical'" With HTTP</a>
</ul>
<li><i>Chris Shiflett</i>:
<ul>
<li><a href="http://shiflett.org/blog/2009/apr/save-the-internet-with-rev-canonical">Save the Internet with rev="canonical"</a>
<li><a href="http://shiflett.org/blog/2009/apr/a-rev-canonical-http-header">A rev="canonical" HTTP Header</a>
</ul>
<li><i>Marco Tabini</i>: <a href="http://mtabini.blogspot.com/2009/04/relcanonical-madness.html">Rev=Canonical madness</a>
<li><i>Evert Pot</i>: <a href="http://www.rooftopsolutions.nl/article/234">rev="canonical" and url shortening</a>
<li><i>Rob Allen</i>: <a href="http://akrabat.com/2009/04/11/shorter-link-a-revcanonical-wordpress-plugin/">Shorter Link: A rev=canonical WordPress plugin</a>
<li><i>Lukas Smith</i>: <a href="http://pooteeweet.org/blog/0/1462">rev=canonical</a>
<li><i>Paul Reinheimer</i>: <a href="http://blog.preinheimer.com/index.php?/archives/311-revcanonical-is-moving-too-fast..html">rev="canonical" is moving too fast.</a>
<li><i>Dave Marshall</i>: <a href="http://www.davedevelopment.co.uk/2009/04/15/revcanonical-and-all-that-jazz/">Rev=Canonical and all that Jazz</a>
</ul>]]></description>
      <pubDate>Mon, 13 Apr 2009 09:31:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Noupe.com:  Beautiful Forms - Design, Style, & make it work with PHP & Ajax]]></title>
      <guid>http://www.phpdeveloper.org/news/12098</guid>
      <link>http://www.phpdeveloper.org/news/12098</link>
      <description><![CDATA[<p>
In <a href="http://www.noupe.com/php/beautiful-forms.html">this new article</a> from Noupe.com they link to several resources that can help you make your site's forms a bit "more beautiful" by combining PHP and Ajax (and Javascript).
</p>
<blockquote>
Forms needs a solid visual structure, a profound hierarchy of form elements (Fields and Labels), powerful techniques and Functionality (AJAX) to make the form look and work creatively. [...] Today we wanted to share with you some great steps to get the perfect form: we will go through designing and usability you need to keep in mind, styling your form, spicing it up with some nice javascript effects, validating user's input and finally getting it to work using PHP and Ajax.
</blockquote>
<p>Some of the links include:</p>
<ul>
<li><a href="http://www.smashingmagazine.com/2008/07/04/web-form-design-patterns-sign-up-forms/">Web Form Design Patterns: Sign-Up Forms</a>
<li><a href="http://www.jankoatwarpspeed.com/post/2008/07/09/Justify-elements-using-jQuery-and-CSS.aspx">Justify elements using jQuery and CSS</a>
<li><a href="http://trif3cta.com/blog/entry/xhtml-css-web-forms-5-simple-techniques/">XHTML/CSS web forms: 5 simple techniques</a>
<li><a href="http://cssrevolt.com/upload/files/protoformclass/">Using ProtoForm</a>
<li><a href="http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosuggest_autocomplete.html">Autosuggest / Autocomplete with Ajax</a>
</ul>
<p>
Most of the article links also include links to demos of the tutorial/application in action.
</p>]]></description>
      <pubDate>Tue, 10 Mar 2009 07:57:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: Cross Application Links]]></title>
      <guid>http://www.phpdeveloper.org/news/11985</guid>
      <link>http://www.phpdeveloper.org/news/11985</link>
      <description><![CDATA[<p>
<i>Fabien Potencier</i> has <a href="http://www.symfony-project.org/blog/2009/02/17/cross-application-links">recently posted a tutorial</a> over on the symfony blog about using cross-application links in your application:
</p>
<blockquote>
A symfony project is made of one or more applications. Applications share nothing, but the model classes. But, even if the symfony documentation is crystal clear on the subject, many developers want to share more than just the model. The most requested feature being the ability to create links to a frontend application from a backend one.
</blockquote>
<p>
This sort of linking is relatively simple in the 1.1 release of the framework - its instances of sfRoutingConfigHandler and sfPatternRouting that let you create the configuration classes (and code) to grab information and functionality from one application to another.
</p>]]></description>
      <pubDate>Thu, 19 Feb 2009 12:56:08 -0600</pubDate>
    </item>
  </channel>
</rss>
