<?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>Wed, 23 May 2012 04:49:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Andrew Martin's Blog: Serving PHP session files from a RAM based disk (tmpfs) for AWS Micro Instance]]></title>
      <guid>http://www.phpdeveloper.org/news/16959</guid>
      <link>http://www.phpdeveloper.org/news/16959</link>
      <description><![CDATA[<p>
<i>Andrew Martin</i> has a new post to his blog looking at a technique that could be used to help minimize some of the performance issues you could see on <a href="http://aws.amazon.com">AWS micro instances</a> dealing with PHP session handling. His alternative is <a href="http://www.binarysludge.com/2011/08/31/serving-php-session-files-from-a-ram-based-disk-tmpfs-for-aws-micro-instances/">serving them from a RAM-based disk</a> instead.
</p>
<blockquote>
It's rare to find a web server with slow disk I/O performance, but Amazon's EC2 micro-instances are one such example. Their EBS disk subsystem access is rated "low", and this can have a detrimental effect on HTTP throughput. [...] This leaves sessions, which can be written to a <a href="http://www.binarysludge.com/2011/01/13/redundant-and-fault-tolerant-php-session-storage/">redundant and fault tolerant storage system</a>. [...] In order to speed up the disk access, a RAM-based disk can be mounted over the session directory. This has the disadvantage of being volatile - the data is lost in case of a server reboot, or the mount point being unmounted. However if tolerable, storing sessions in RAM insulates the application from poor filesystem performance.
</blockquote>
<p>
He mentions the two types of kernels that can be used, ramfs and tmpfs, and the specifics of using a tmpfs filesystem to implement the technique (complete with command line calls to make it happen). 
</p>]]></description>
      <pubDate>Thu, 06 Oct 2011 11:42:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas's Blog: Using Phing to sync files with shared hosting]]></title>
      <guid>http://www.phpdeveloper.org/news/12048</guid>
      <link>http://www.phpdeveloper.org/news/12048</link>
      <description><![CDATA[<p>
<i>Juozas Kaziukenas</i> has <a href="http://dev.juokaz.com/php/using-phing-to-synchronize-files">a new post</a> to his blog today looking at using <a href="http://phing.info/trac/">Phing</a> to keep files in sync on a shared hosting, FTP only kind of environment.
</p>
<blockquote>
Today I was trying to use [Phing] in shared hosting server, but as you will see, Phing can't do a lot of it's functionality without direct access to server (over shh for example). [...] Things get worse, when you try to sync files in shared hosting environment, where only FTP is available. [...] <a href="http://codeinthehole.com/">Code in the hole</a> some months ago posted <a href="http://codeinthehole.com/archives/13-Deploying-to-a-shared-hosting-environment-using-Phing.html">solution</a> which uses Net_FTP (FTP functionality wrapper) package to upload files to server. I decided to try given solution, so I modified it to download source code from SVN first and then upload them.
</blockquote>
<p>
His Phing configuration sets up the application, defining the source directory, the files to push, the FTP connection to make and pushes the files over out of an svn export. He has a slightly different solution (no code/config for this one) that would grab the last revision value from the remote server and only push out the files have have changed since then.
</p>]]></description>
      <pubDate>Mon, 02 Mar 2009 13:41:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: On $_GET and $_POST]]></title>
      <guid>http://www.phpdeveloper.org/news/11890</guid>
      <link>http://www.phpdeveloper.org/news/11890</link>
      <description><![CDATA[<p>
On the SitePoint PHP Blog today <i>Troels Knak-Nielsen</i> <A href="http://www.sitepoint.com/blogs/2009/02/05/on-get-and-post/">takes a deeper look</a> at two of the superglobals a lot of PHP developers take for granted - $_GET and $_POST.
</p>
<blockquote>
When a PHP script is invoked by a web server, it is as the result of a HTTP request. A <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5">HTTP request</a> has a target URI and that URI consists of different parts. One of these parts is the query. As the PHP process starts up, the query gets parsed into an associative array. And for some reason, somebody decided on the unfortunate $_GET, because it's what you use for GET requests - right? Wrong!
</blockquote>
<p>
He points out that all HTTP requests, regardless if they're GET or POST will have that GET information (not necessarily in $_GET, though). He also mentions another commonly used (and sometimes abused) superglobal - $_FILES. His biggest gripe, though, is that the naming of the variables confuses the developer as to the true content of the HTTP request.
</p>
<blockquote>
And I won't even comment on the nastiness of $_REQUEST.
</blockquote>]]></description>
      <pubDate>Thu, 05 Feb 2009 11:14:33 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: How to Upload Images Using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11856</guid>
      <link>http://www.phpdeveloper.org/news/11856</link>
      <description><![CDATA[<p>
The PHPBuilder.com site has a <a href="http://www.phpbuilder.com/columns/bokeh20090129.php3">quick new tutorial</a> showing how to upload images to your server via a PHP script (including some error checking).
</p>
<blockquote>
One of the most frequently asked questions about PHP is "how can I use PHP to upload an image". In this article we'll discuss the details of how you can do just that!
</blockquote>
<p>
Their script is done in three steps - an HTML form to accept the input, the PHP script to handle the upload (working with the $_FILES superglobal) and another HTML page to let the user know their upload was a success. When the file is uploaded, they check for a few things: the internal error PHP could throw, ensuring that the uploaded file exists and checking to ensure that the file is an image. Only then is it moved over to the true uploads directory to be stored.
</p>]]></description>
      <pubDate>Mon, 02 Feb 2009 10:23:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tiffany Brown's Blog: Simple pagination for arrays with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/11569</guid>
      <link>http://www.phpdeveloper.org/news/11569</link>
      <description><![CDATA[<p>
<i>Tiffany Brown</i> has a <a href="http://tiffanybbrown.com/2008/12/14/simple-pagination-for-arrays-with-php-5/">quick tutorial</a> on a pagination method she's come up with for splitting out array contents over multiple pages.
</p>
<blockquote>
While working on a recent project, I had to build a feature that displayed a list of files available in a directory. A simple way is just to use scandir() and a foreach loop to spit out a pretty list. There's a small problem though: long lists aren't all that user friendly. I decided instead to paginate the results. Here's one way to do it using PHP 5.
</blockquote>
<p>
Her method reads in all of the (valid) files from the directory, assigns them to an array and uses the <a href="http://php.net/array_chunk">array_chunk</a> function to split them up into groups on five. These groups can be easily looped through and displayed out as links easily.
</p>]]></description>
      <pubDate>Mon, 15 Dec 2008 08:48:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building File Uploaders with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9830</guid>
      <link>http://www.phpdeveloper.org/news/9830</link>
      <description><![CDATA[<p>
On DevShed today there's a <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/">new tutorial</a> showing how to build file upload functionality into your scripts.
</p>
<blockquote>
If you're a PHP developer who has built a certain number of web applications, then it's quite probable that you've already worked with HTTP file uploads. [...] First I'm going to teach you how to handle file uploads using a procedural approach, and then, with the topic well underway, by way of the object-oriented paradigm.
</blockquote>
<p>
The introduce the beginners out there to <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/1/">the $_FILES array</a> (a superglobal) that contains the details about the file(s) that have been submitted. Next comes the construction of a <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/2/">simple form</a> and how to handle the submission <a href="http://www.devshed.com/c/a/PHP/Building-File-Uploaders-with-PHP-5/3/">on the PHP side</a>.
</p>]]></description>
      <pubDate>Thu, 20 Mar 2008 11:18:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: PHP Security Tip #15 (Remove Temporary Files)]]></title>
      <guid>http://www.phpdeveloper.org/news/7492</guid>
      <link>http://www.phpdeveloper.org/news/7492</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted <a href="http://devzone.zend.com/node/view/id/1849">security tip #15</a> today, focusing on an easily forgotten aspect of web development (not just in PHP) - forgetting to remove temporary files.
</p>
<blockquote>
As developers, most of us are very messy. I've worked on countless projects and at each either run across or left a trail of diagnostic files laying around. (info.php, test.php, doMe.php, etc.) These tiles, if found by someone with nefarious intent, can leak valuable information about your system.
</blockquote>
<p>
Always remember to remove these types of files...as <i>Cal</i> puts it:
</p>
<blockquote>
It would be a shame to spend all that time securing your application only to leave info.php or worse yet, a "quick piece of code" in test.php that could potentially leak dangerous information about your system. Don't help the ad guys any more than you have to.
</blockquote>]]></description>
      <pubDate>Fri, 23 Mar 2007 09:20:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Reading, Writing and Creating Files in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6116</guid>
      <link>http://www.phpdeveloper.org/news/6116</link>
      <description><![CDATA[<p>
DevShed has <a href="http://www.devshed.com/c/a/PHP/Reading-Writing-and-Creating-Files-in-PHP/">a new tutorial</a> posted today with a look at one of the more common tasks performed with PHP (second to generating web pages, of course) - working with files. It can be a little tricky for a budding PHP programmer, but they've got the info you need to get started.
</p>
<blockquote>
Reading and writing to files can be useful if you do not require the storing of important data, such as a web counter. I must warn you though, that this method of storage should not be used to store passwords and other critical information, as it is not safe. Here we will discuss how to handle files and directories in PHP, specifically, how to create, read and write them.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Reading-Writing-and-Creating-Files-in-PHP/">start off with a look</a> at file permissions on both Unix and Windows systems ot give you an idea of what problems they could cause. Then, it's on to the actual files themselves - for this part, though, they only look at reading them in and working with their contents.
</p>]]></description>
      <pubDate>Wed, 23 Aug 2006 08:59:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mike Potter's Blog: Updated (unofficial) Adobe PHP SDK]]></title>
      <guid>http://www.phpdeveloper.org/news/6076</guid>
      <link>http://www.phpdeveloper.org/news/6076</link>
      <description><![CDATA[<p>
<i>Mike Potter</i> has <a href="http://blogs.adobe.com/mikepotter/2006/08/updated_unoffic.html">posted an update</a> to his blog about the unofficial Adobe PHP SDK he <a href="http://www.phpdeveloper.org/news/6039">mentioned earlier</a> with details about new information and corrections that have been added to the guide.
</p>
<blockquote>
I've updated the (unofficial) Adobe PHP SDK to fix some problems after the initial release.  Turns out a few files were missing from the .zip file, and some files were misnamed.  I've fixed these problems and also added in a new, more simple sample to show how Flex can retrieve XML data from a PHP backend, without requiring the use of a MySQL database.  Finally, I've also removed the .svn files from the .zip file, reducing its size to only 1.5 MB.
</blockquote>
<p>
You can download this latest version of the guide <a href="http://blogs.adobe.com/mikepotter/adobe_php_sdk-060817.zip">directly from his blog</a> as well as get involved via the <a href="http://groups.google.com/group/adobe_php_sdk">Google Group</a> or requesting access to <a href="http://code.google.com/p/adobe-php-sdk/">the SVN repository</a> on Google as well.
</p>]]></description>
      <pubDate>Fri, 18 Aug 2006 06:55:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Edin.dk: PHP 4.4 for windows with newer MySQL libraries]]></title>
      <guid>http://www.phpdeveloper.org/news/5845</guid>
      <link>http://www.phpdeveloper.org/news/5845</link>
      <description><![CDATA[<p>
If you're caught using PHP4 on Windows and have been seeing some issues with the older MySQL libraries you've been using lately, it might be time to upgrade. "But I can't move away from PHP4," you say. No worries - <a href="http://edin.dk/archives/7-PHP-4.4-for-windows-with-newer-MySQL-libraries.html">this new post</a> from <i>Edin Kadribaaic</i> should have the answer you're looking for.
</p>
<blockquote>
Since the main PHP 4 distribution cannot be updated with the latest MySQL libs for various reasons, I will provide <a href="http://edin.dk/uploads/files/php-4.4.3RC3-dev-w-mysql-5.0.22.zip">downloads</a> of the latest PHP 4 with the latest MySQL libs.
</blockquote>
<p>
His archive <a href="http://edin.dk/archives/7-PHP-4.4-for-windows-with-newer-MySQL-libraries.html">contains two files</a>, both DLLs to replace the MySQL libraries that already exist.
</p>]]></description>
      <pubDate>Fri, 21 Jul 2006 06:07:52 -0500</pubDate>
    </item>
  </channel>
</rss>

