<?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>Mon, 06 Oct 2008 18:40:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mind Tree Blog: Friendly URLs in PHP: why do you care?]]></title>
      <guid>http://www.phpdeveloper.org/news/10492</guid>
      <link>http://www.phpdeveloper.org/news/10492</link>
      <description><![CDATA[<p>
<a href="http://www.hurricanesoftwares.com/2008/06/24/friendly-urls-in-php-why-do-you-care/">This new post</a> from the Mind Tree blog (at hurricanesoftware.com) asks the question "why do you care about friendly URLs in PHP applications?"
</p>
<blockquote>
Nice URLs, readable URLs, search-engine-friendly URLs. Different names same deal. [...] Turns out this isn't all that hard with PHP - in fact it can turn into something that's very useful from more than just a readability viewpoint.
</blockquote>
<p>
He shows how to <a href="http://www.hurricanesoftwares.com/2008/06/24/friendly-urls-in-php-why-do-you-care/">use mod_rewrite</a> and an .htaccess file to automatically grab the request and map it to the right place. Then, the PHP script looks at the incoming data and pushes the correct page back out to the browser. He's also included some modifications to the original idea that allow for numeric grouping and named groups for rewriting content.
</p>]]></description>
      <pubDate>Thu, 26 Jun 2008 10:26:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jonathan Snook's Blog: Password Protecting Admin Functions in CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9525</guid>
      <link>http://www.phpdeveloper.org/news/9525</link>
      <description><![CDATA[<p>
<i>Jonathan Snook</i> has <a href="http://snook.ca/archives/servers/password_protect_admin/">posted a helpful trick</a> for CakePHP users out there looking to secure sections of their site away from "normal users" and keep it only in the hands of the admins.
</p>
<blockquote>
I just wanted to document this for easy future reference but if you don't want to hook up a complex user adminstration with authorization components, you can simply specify that the admin path be password protected in either your .htaccess file or in your httpd.conf.
</blockquote>
<p>
This method is actually one of the built-in methods Apache has for restricting access (http authentication) that he's placed on his "/admin" directory. Call htpasswd to create the password file and you're all set to go.
</p>
]]></description>
      <pubDate>Wed, 30 Jan 2008 09:31:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Nessa's Blog: Using an .htaccess with PHP Compiled as CGI]]></title>
      <guid>http://www.phpdeveloper.org/news/9201</guid>
      <link>http://www.phpdeveloper.org/news/9201</link>
      <description><![CDATA[<p>
<i>Nessa</i> has <a href="http://www.v-nessa.net/2007/12/06/using-an-htaccess-with-php-compiled-as-cgi">posted another new tutorial</a> based around her experiences with <a href="http://www.suphp.org/Home.html">suPHP</a>. This time it deals with using an .htaccess file for changing the settings of the PHP installation.
</p>
<blockquote>
First of all, if you'd rather use the .htaccess than the php.ini capabilities of a phpsuexec environment, then shame on you. But, we have some customers who are terrified of php.ini and would rather use the .htaccess. So what? Ok, well there is a workaround.
</blockquote>
<p>
The connecting piece is the <a href="http://pecl.php.net/htscanner">htscanner extension</a> - she includes installation instructions and how to include it into your PHP installation (as well as how to set the PHP values in the .htaccess).
</p>]]></description>
      <pubDate>Fri, 07 Dec 2007 16:18:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ask Apache Blog: A better way to use PDF files online]]></title>
      <guid>http://www.phpdeveloper.org/news/9114</guid>
      <link>http://www.phpdeveloper.org/news/9114</link>
      <description><![CDATA[<p>
From the Ask Apache blog, there's a <a href="http://www.askapache.com/htaccess/pdf-plugin-adobe.html">quick tip</a> that makes it simple to give your site's visitors the option to either download or view a PDF file no matter what their browser default is.
</p>
<blockquote>
One of the most annoying things on the Internet for me is when I click on a link to an Adobe PDF file. For me this is annoying to the extreme because the PDF file is openened directly in your browser because of the Adobe PDF Plugin that almost all browsers have installed. [...] For me an ideal solution would be to offer me choices.
</blockquote>
<p>
His <a href="http://www.askapache.com/htaccess/pdf-plugin-adobe.html">solution</a> uses mod_rewrite in an .htaccess file to push the visitor to a PHP file. This file grabs the filename they want and pulls in the content, pushing it back out the other side with the "attachment" header that forces a request box on the browser.
</p>]]></description>
      <pubDate>Mon, 26 Nov 2007 11:11:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Dave Dash's Blog: symfony and the .htaccess file]]></title>
      <guid>http://www.phpdeveloper.org/news/8471</guid>
      <link>http://www.phpdeveloper.org/news/8471</link>
      <description><![CDATA[<p>
<i>Dave Dash</i> has <a href="http://spindrop.us/2007/08/15/symfony-and-the-htaccess-file/">another performance tip</a> for Symfony users involving a simple change involving your .htaccess file.
</p>
<blockquote>
One performance boost that can be garnered from a symfony app (or any app for that matter) is disabling .htaccess. .htaccess does not need to be parsed on each visit to your app. Disabling .htaccess is trivial in your VirtualHost or another relevant part of your apache configuration place.
</blockquote>
<p>
The information (like routing rules) that was inside of the .htaccess is then moved back into the VirtualHost inside the Apache configuration to make for less files the Apache instance needs to open to get its job done.
</p>]]></description>
      <pubDate>Thu, 16 Aug 2007 15:14:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Nelson's Blog: Writing A Reverse Proxy in PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/8280</guid>
      <link>http://www.phpdeveloper.org/news/8280</link>
      <description><![CDATA[<p>
<i>Brian Nelson</i> submitted a link to <a href="http://techzinger.blogspot.com/2007/07/writing-reverse-proxy-in-php5.html">a new class he's developed</a> to fill a hole he hand and didn't see anything that would easily fill it - having a reverse proxy in PHP5.
</p>
<blockquote>
So I have been working on a little class to run a reverse proxy from <a href="http://www.php.net/">PHP</a> using <a href="http://us.php.net/curl">cURL</a>. I have extended this class for my own purposes (single-sign-on) to handle some special request parameters, but here it is. It has some warts, but it's a good starting point. I would appreciate any pointers anyone has to offer.
</blockquote>
<p>
<a href="http://techzinger.blogspot.com/2007/07/writing-reverse-proxy-in-php5.html">His code</a> uses the cURL functionality to set up a handler to push the requests through. Also included are an htaccess file and a two-line PHP example of how to use it to request a public site.
</p>]]></description>
      <pubDate>Wed, 18 Jul 2007 15:55:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brent Meshier's Blog: Blocking visitors by country using PHP & MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/7687</guid>
      <link>http://www.phpdeveloper.org/news/7687</link>
      <description><![CDATA[<p>
In a <a href="http://meshier.com/2007/04/21/blocking-visitors-by-country-using-php-mysql/">quick new post</a> from <i>Brent Meshier</i> today, he shows us how, with the help of a <a href="http://meshier.com/wp-content/uploads/2007/04/ip-to-country.csv">database CVS file</a>, to block visitors to your site from certain locales.
</p>
<blockquote>
A client asked me last night if it was possible to block certain countries from accessing his website. He's concerned about the "axis of evil" and their comrades downloading his software. The task is easily accomplished, although it's like using a sledge hammer to tap in a finishing nail. He didn't seem too concerned that we could accidentally block Uzbekistan in the process. Unfortunately his entire site uses plain .html files, no dynamic scripting. This led me to using a slightly creative solution with .htaccess.
</blockquote>
<p>
Broken up into <a href="http://meshier.com/2007/04/21/blocking-visitors-by-country-using-php-mysql/">five simple steps</a>, he makes a light function to drop into an output buffering function to tell it to either show the normal content or return a 401 Unauthorized header to the visitor.
</p>]]></description>
      <pubDate>Mon, 23 Apr 2007 16:38:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ibzi's Blog: Start caching all your pages in 5 steps]]></title>
      <guid>http://www.phpdeveloper.org/news/7302</guid>
      <link>http://www.phpdeveloper.org/news/7302</link>
      <description><![CDATA[<p>
On ibzi's blog today, there's <a href="http://www.ibzi.net/blog/post21.html">a quick guide</a> to introducing caching to your PHP application via a simple PHP file to create the cached pages.
</p>
<blockquote>
Caching your pages can be pretty useful, especially if you have PHP-generated pages that uses a lot of MySQL queries. Once your pages are cached, your server won't waste speed and RAM on regenerating the pages, it will just load it from the cache. I'm going to show you how to get PHP to cache your pages, and you can probably do this within 5 minutes.
</blockquote>
<p>
You'll need to be able to add (and use) an .htaccess file for Apache to use <a href="http://www.ibzi.net/blog/post21.html">this method</a>, but once it's set up, the simple script works like a charm. It prepends the caching functionality to each page and checks to see if a copy already exists. If it does, it displays it and if not, it will display it and create the cached file.
</p>]]></description>
      <pubDate>Mon, 19 Feb 2007 10:12:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: Package Updates - Zip & htscanner]]></title>
      <guid>http://www.phpdeveloper.org/news/6817</guid>
      <link>http://www.phpdeveloper.org/news/6817</link>
      <description><![CDATA[<p>
<i>Pierre-Alain Joye</i> has posted several new updates concerning the packages he works on - Zip and a new offering, htscanner.
</p>
<p>
The first two concern the htscanner package - first, <a href="http://blog.thepimp.net/index.php/post/2006/11/30/htscanner-htaccess-like-for-FastCGI-or-non-apache-SAPI">the initial release</a> of the extension that works to emulate htaccess support for non-Apache web servers (like FastCGI or lighttpd). The <a href="http://blog.thepimp.net/index.php/post/2006/12/01/htscanner-windows-binaries-available">second related post</a> notes that that Windows binaries for the functionality are also posted on the <a href="http://pecl4win.php.net/">pecl4win website</a>.
</p>
<p>
Next on his list were some update to the Zip PECL package, <a href="http://blog.thepimp.net/index.php/post/2006/12/02/zip-182-fixed-for-510-1-and-2">a fix</a> to correct issues found when using PHP versions 5.1.0, 5.1.1, and 5.1.2 (due to an internal function name issue).
</p>]]></description>
      <pubDate>Mon, 04 Dec 2006 10:39:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: Protecting a MySQL user/password in a PHP script]]></title>
      <guid>http://www.phpdeveloper.org/news/5093</guid>
      <link>http://www.phpdeveloper.org/news/5093</link>
      <description><![CDATA[<i>Greg Beaver</i> has posted <a href="http://greg.chiaraquartet.net/archives/124-Protecting-a-MySQL-userpassword-in-a-PHP-script.html">some tips</a> he has (with a few updates along the way) about protecting your MySQL username and password in a PHP script, hiding the plain-text version from would-be attackers.
<p>
<quote>
<i>
Two days ago, I gave a talk at the University of Nebraska-Lincoln's computer science department colloquium on open source. At the reception preceding the talk, one of the students asked if there was a good way to protect the user/password of his MySQL scripts. This is an issue I have never run up against because we have a unique IP on the webhost, and it doesn't matter whether someone knows the user/pass, they can only connect directly from that host (and if someone can hack into the host, I doubt the database is the only thing that will be compromised).
</i>
</quote>
<p>
<a href="http://greg.chiaraquartet.net/archives/124-Protecting-a-MySQL-userpassword-in-a-PHP-script.html">The dilema</a> was caused by the shared hosting of the students' sites and the plain-text storage of their database user/pass in a Wordpress file. <i>Greg</i> suggested two methods, one where each user gets their own Apache space, and another where the password is stored in a read-only file that just the server has access to.
<p>
<i>Chris Shiflett</i> came back with a comment, however, about another, more secure mthod - using an .htaccess that only the user can work with (and can change at any time) containing and setting Apache environment variables the script could then pull.]]></description>
      <pubDate>Mon, 03 Apr 2006 07:37:38 -0500</pubDate>
    </item>
  </channel>
</rss>
