<?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>Tue, 18 Jun 2013 01:55:20 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[CodeForest.net: Obfuscate your e-mail address with PHP, JavaScript and CSS]]></title>
      <guid>http://www.phpdeveloper.org/news/17046</guid>
      <link>http://www.phpdeveloper.org/news/17046</link>
      <description><![CDATA[<p>
A new post on CodeForest.net today gives you a technique for <a href="http://www.codeforest.net/obfuscate-your-email-address-with-php-javascript-and-css">obfuscating email addresses</a> with a combination of PHP, CSS and Javascript. It uses ROT13 for the obfuscation and some tricky CSS to keep it usable for the human visitors.
</p>
<blockquote>
According to <a href="http://en.wikipedia.org/wiki/E-mail_spam#Statistics_and_estimates">Wikipedia</a>, more than 97% of all e-mails sent over the net are unwanted. That's around 200 billion spam messages per day. To keep this insane amount of spam out of your inbox, you should keep your e-mail safe when you display it on web. One of the ways to keep it safe is to obfuscate it. In this tutorial I'll show you how to create a script that will do just that.
</blockquote>
<p>
<a href="http://www.codeforest.net/demo/obfuscateEmailAddress.rar">The script</a> converts the email address into a <a href="http://en.wikipedia.org/wiki/ROT13">ROT13 obfuscated</a> versions and reverse it. The spam bots harvesting addresses won't see it as a valid format but the user, thanks to some CSS rules, will see it and be able to copy it easily. Each part of the script is explained in <a href="http://www.codeforest.net/obfuscate-your-email-address-with-php-javascript-and-css">the post</a> and you can see a <a href="http://www.codeforest.net/demo/obfuscateEmailAddress/demo.php">demo of it in action here</a>.
</p>]]></description>
      <pubDate>Wed, 26 Oct 2011 12:39:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org Blog: Locating addresses on Google Maps embedded in PHP generated Web forms]]></title>
      <guid>http://www.phpdeveloper.org/news/13482</guid>
      <link>http://www.phpdeveloper.org/news/13482</link>
      <description><![CDATA[<p>
On the PHPClasses.org blog there's <a href="http://www.phpclasses.org/blog/package/1/post/5-Locating-addresses-on-Google-Maps-embedded-in-PHP-generated-Web-forms.html">a new tutorial</a> showing how to use the goe-location support the Google Maps API offers to search for and find an address.
</p>
<blockquote>
Sometimes it is necessary to get the coordinates of a location on the map. The map location plug-in lets the user point to any location by clicking on the map. [...] However, when the user does not know exactly where is the location he is looking for, it may be painful to find it just by zooming and looking around the map. The latest release of this plug-in makes possible for the users to type the address or name of the city you are looking for and search for the location without further effort.
</blockquote>
<p>
He uses the <a href="http://www.phpclasses.org/browse/package/1.html">form creation package</a> to set up a simple address form (address and country) and a call to its connect() method to link Javascript to the form. When submitted, the new features of the class  get to work and ask the Google API for the location and a map is generated with a marker on the spot requested.
</p>]]></description>
      <pubDate>Wed, 04 Nov 2009 12:45:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Validating IP Addresses with Filters in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/13116</guid>
      <link>http://www.phpdeveloper.org/news/13116</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Validating-IP-Addresses-with-Filters-in-PHP-5/">seventh part</a> of their "validator" series today. This time they look at validating IP addresses with the <a href="http://php.net/filter_var">filter_var</a> function.
</p>
<blockquote>
You can surely appreciate this functionality when developing modules, classes, plug-ins, etc. that must perform some kind of strong validation on incoming data. The filter extension comes armed with another handy filter, though, that permits you to check some common things, such as the IP addresses of client machines. 
</blockquote>
<p>
The <a href="http://www.devshed.com/c/a/PHP/Validating-IP-Addresses-with-Filters-in-PHP-5/2/">give an example</a> of using the FILTER_VALIDATE_IP constant to check the IP address format and include the optional FILTER_FLAG_IPV4 check for the IPv4 format.
</p>]]></description>
      <pubDate>Wed, 26 Aug 2009 15:52:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Gregg's Blog: PHP algorithms: Determining if an IP is within a specific range.]]></title>
      <guid>http://www.phpdeveloper.org/news/12417</guid>
      <link>http://www.phpdeveloper.org/news/12417</link>
      <description><![CDATA[<p>
<i>Paul Gregg</i> has <a href="http://pgregg.com/blog/2009/04/php-algorithms-determining-if-an-ip-is-within-a-specific-range.html">shared a method</a> he's come up with to determine if a given IP is within a selected range.
</p>
<blockquote>
Unfortunately although people usually understand that an IP address is simply an unsigned 32 bit integer, and is easily determined, usually with $_SERVER['REMOTE_ADDR'], where the real challenge is - is in specifying the range within which they wish to check that IP address.  IP ranges are usually specified in three common ways (in increasing complexity): wildcard, start-end range, classless inter-domain routing.
</blockquote>
<p>
He looks at each method and includes descriptions and code examples as well as a link to <a href="http://pgregg.com/projects/php/ip_in_range/ip_in_range.phps">the source code</a> and a <a href="http://pgregg.com/projects/php/ip_in_range/test.php">live demo</a> of it in action. 
</p>]]></description>
      <pubDate>Tue, 28 Apr 2009 09:25:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: XPath Explained (by Tobias Schlitt and Jacob Westhoff)]]></title>
      <guid>http://www.phpdeveloper.org/news/11937</guid>
      <link>http://www.phpdeveloper.org/news/11937</link>
      <description><![CDATA[<p>
<i>Tobias Schlitt</i> and <i>Jacob Westhoff</i> have written up and article (and posted it <a href="http://schlitt.info/opensource/blog/0704_xpath.html">over on Tobias' blog</a>) that wants to help you understand XPath better - whether you're a novice or have been using it for a while.
</p>
<blockquote>
This paper will give an overview on XPath an addressing language for XML documents. XPath is a W3C recommendation currently in version 1.0. XPath was created in relation to the XSL recommendation and is intended to be used with XSLT and XPointer. Beside that, XPath can be used in a variety of programming languages, commonly in combination with a DOM API.
</blockquote>
<p>
The article starts with an <a href="http://schlitt.info/opensource/blog/0704_xpath.html#introduction">introduction to the concept</a> of XPath, moves on to <a href="http://schlitt.info/opensource/blog/0704_xpath.html#addressing">addressing</a>, talks about <a href="http://schlitt.info/opensource/blog/0704_xpath.html#xpath-axes">XPath axes</a>, mentions <a href="http://schlitt.info/opensource/blog/0704_xpath.html#functions-operators-and-conditions">functions/operators/conditions</a> and looks at <a href="http://schlitt.info/opensource/blog/0704_xpath.html#xpath-and-xslt">styling XML with XPath and XSLT</a>.
</p>]]></description>
      <pubDate>Thu, 12 Feb 2009 10:28:04 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Mimicking Apple's Address Book for the Web]]></title>
      <guid>http://www.phpdeveloper.org/news/11486</guid>
      <link>http://www.phpdeveloper.org/news/11486</link>
      <description><![CDATA[<p>
The NETTUTS blog has <A href="http://nettuts.com/videos/screencasts/mimicking-apple%E2%80%99s-address-book-for-the-web/">this new tutorial</a> posted (including a screencast) showing how to make a web application similar to the Address Book on Apple's OS X operating system.
</p>
<blockquote>
As we all know, WordPress is so extensive that you can use it for nearly anything. There are even articles on sites with crazy titles such as 101 alternative uses for WordPress. So I thought, hey, why not? I bet a lot of people want to create their own Web Apps, and essentially WordPress can do that for you. In this video tutorial, we're going to make an online Address Book.
</blockquote>
<p>
Building on a WordPress base and including <a href="http://jquery.com/download">jQuery</a> and a <a href="http://nettuts.com/videos/screencasts/mimicking-apple%e2%80%99s-address-book-for-the-web/res/live-search-popup.zip">Live Search Plugin</a>, they create the multi-pane look and feel, styled largely with CSS. The end result shows your address groups, the members of that group and the selected member's information in the far right pane.
</p>
<p>
As always, the <a href="http://nettuts.s3.amazonaws.com/103_NTPlus_AddressBook/addressbook.zip">complete source can be downloaded</a>.
</p>]]></description>
      <pubDate>Tue, 02 Dec 2008 11:16:19 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Knut Urdalen's Blog: Washing emails]]></title>
      <guid>http://www.phpdeveloper.org/news/11465</guid>
      <link>http://www.phpdeveloper.org/news/11465</link>
      <description><![CDATA[<p>
<i>Knut Urdalen</i> has <a href="http://www.urdalen.com/blog/?p=246">posted a new blog item</a> about something he calls "washing emails":
</p>
<blockquote>
In this tutorial I'll show you how to create a simple PHP script to cleanup a list of email addresses. As a web developer you have probably been asked to wash a list of emails from a manager or marketer some times. Here's the ultimate solution.
</blockquote>
<p>
His script does a few things - removes duplicates, validates that the email address exists, uses pipes for communication and is as flexible as possible to work on most PHP distributions. You can download the simple script <a href="http://www.urdalen.com/files/wash.phps">here</a>.
</p>]]></description>
      <pubDate>Thu, 27 Nov 2008 14:42:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Writing an Email Autoresponder Script with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9360</guid>
      <link>http://www.phpdeveloper.org/news/9360</link>
      <description><![CDATA[<p>
The DeveloperTutorials website has a <a href="http://www.developertutorials.com/tutorials/php/writing-an-email-autoresponder-script-with-php-8-01-03/page1.html">new article</a> that steps you through the creation of an autoresponder script for an email account (in qmail).
</p>
<blockquote>
It's very convenient for users to be able to communicate with web applications (or businesses) via email, but it's not always easy for the employees of the company to respond. Some of the email requests could be complex, and others could be simple but occur very frequently. So it's a real advantage when we can write scripts to respond to user emails for us.
</blockquote>
<p>
<a href="http://www.developertutorials.com/tutorials/php/writing-an-email-autoresponder-script-with-php-8-01-03/page1.html">The tutorial</a> sets up a basic structure for you to work from including places for the addresses and extra headers for the response. You can also <a href="http://www.mollerus.net/tom/blog/downloads/autoresponder.script.php.txt">download the code</a> to have it to follow along with (or play around with yourself).
</p>]]></description>
      <pubDate>Fri, 04 Jan 2008 15:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Gareth Heyes' Blog: Faking the unexpected]]></title>
      <guid>http://www.phpdeveloper.org/news/9167</guid>
      <link>http://www.phpdeveloper.org/news/9167</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has <a href="http://www.thespanner.co.uk/2007/12/02/faking-the-unexpected/">an example</a> of yet another way he's seen developers incorrectly handle incoming connections and the information inside. This time, he focuses on the remote IP coming from the client.
</p>
<blockquote>
Developers place too much trust in everything, they assume that certain data cannot be faked and therefore these pieces of data can be used as a Trojan horse. Lets take the REMOTE IP of a user, it seems a trusted source because of the TCP/IP connection between the user and the server.
</blockquote>
<p>
He points out the difference between HTTP_X_FORWARDED_FOR and REMOTE_ADDR and how, despite them being the same almost all of the time, shouldn't be trusted since they could be spoofed. He even includes an example script showing how it could be done (and how a bit of Javascript can even be inserted).
</p>]]></description>
      <pubDate>Tue, 04 Dec 2007 08:36:04 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: AJAX and PHP Part 3 - Post vs. Get Requests]]></title>
      <guid>http://www.phpdeveloper.org/news/8368</guid>
      <link>http://www.phpdeveloper.org/news/8368</link>
      <description><![CDATA[<p>
PHPBuilder.com has <a href="http://www.phpbuilder.com/columns/jon_campbell20070730.php3">posted part three</a> of their series looking at building a simple site using PHP and Ajax - this time with a focus on using the POST method instead of GET to push the data back and forth from client to server.
</p>
<blockquote>
The advantage of this is primarily security, however you often can send larger amounts of data with the POST method as well (but that is dependent on your server configuration rather it be Apache/PHP, Microsoft/IIS, or Java/J2EE, etc). The primary advantage of POST is again, the security of the communication, because often log files on the web server will log the AJAX GET request data because that data is part of a URL in the request. This does not occur with the AJAX POST request.
</blockquote>
<p>
They start with a <a href="http://www.phpbuilder.com/columns/jon_campbell20070730.php3">simple example</a> of the POST request type, pulling data from a form (address/city/state/etc) and pushing it to the backend script. They follow this by picking it apart, explaining each of the sections of code for a better understanding.
</p>]]></description>
      <pubDate>Wed, 01 Aug 2007 09:27:00 -0500</pubDate>
    </item>
  </channel>
</rss>
