<?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>Sat, 25 May 2013 04:30:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Splitting large MySQL dump files]]></title>
      <guid>http://www.phpdeveloper.org/news/16937</guid>
      <link>http://www.phpdeveloper.org/news/16937</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Sameer Borate</i> includes a handy bit of code you can use to <a href="http://www.codediesel.com/php/splitting-large-mysql-dump-files/">split up a large MySQL dump file</a> into smaller, easier to digest chunks.
</p>
<blockquote>
One of the frustrating things with working with MySQL is of importing large sql dump files. Either you get a 'max execution time exceeded' error from PHP or a 'Max_allowed_packet_size' from MySQL. In a recent task I needed to import a table of around a million records on a remote host, which quickly became an exercise in frustration due to various limitations on the server. SSH was of no help as changing the configuration files was restricted to the root user. My last resort was to split the huge 'INSERT' statements into smaller size files. 
</blockquote>
<p>
His script needs a little extra time to run (he sets max execute to 600 seconds) and takes the SQL file in line by line, splitting them back out to over files based on a "count" value - "dump-split-*". Depending on the size of your files, using something like this might not be an option. You might need something more like the <a href="http://kb.iu.edu/data/afar.html">command line "split" feature</a> to keep it outside of PHP's memory management all together.
</p>]]></description>
      <pubDate>Mon, 03 Oct 2011 08:44:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: Getting help on symfony1 or Symfony2]]></title>
      <guid>http://www.phpdeveloper.org/news/16515</guid>
      <link>http://www.phpdeveloper.org/news/16515</link>
      <description><![CDATA[<p>
On the Symfony blog <i>Fabien Potencier</i> has a new post talking about <a href="http://symfony.com/blog/getting-help-on-symfony1-or-symfony2">a change in the support structure</a> for developers wanting to get help with either Symfony1 or Symfony2 - a split in the mailing list to help make things a bit easier to split out.
</p>
<blockquote>
Now that Symfony2 is just around the corner, we need to better organize community support for both symfony1 and Symfony2. As more people start using Symfony2, the user mailing-list is becoming more and more difficult to follow. [...] After an opinionated <a href="http://groups.google.com/group/symfony-users/browse_thread/thread/ca3d1cd6662ca1d6/1372435731045ea0">discussion</a> on the mailing-list, I've decided to create two new mailing-lists that are replacing the current <a href="http://groups.google.com/group/symfony-users">users</a> mailing-list: one for <a href="http://groups.google.com/group/symfony1">symfony1</a> and another one for <a href="http://groups.google.com/group/Symfony2">Symfony2</a>. The current mailing-list has been switched to the archive mode; all messages will remain browseable and searchable but new messages will be rejected. 
</blockquote>
<p>
If you're a current member of the "users" mailing list and want a similar experience, you'll need to <a href="http://symfony.com/mailing-lists">subscribe</a> to both. Otherwise, pick the one you like and watch your inbox fill up. This break up makes it easier for people to find messages specifically related to their version of choice without having to look for the "[Symfony2]" tag in the subject line.
</p>]]></description>
      <pubDate>Fri, 24 Jun 2011 09:02:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Artur Ejsmont's Blog: HTTP response splitting and mail headers splitting attacks ]]></title>
      <guid>http://www.phpdeveloper.org/news/15431</guid>
      <link>http://www.phpdeveloper.org/news/15431</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Artur Ejsmont</i> looks at an attack that could potentially leave a hole open in your PHP-based application for a cross-site scripting (XSS) attack - <a href="http://artur.ejsmont.org/blog/content/http-response-splitting-and-mail-headers-splitting-risk">HTTP response splitting</a> (mail headers too). 
</p>
<blockquote>
There are two similar security issues both taken care of by Suhosin patch and strict escaping/encoding rules. They both relate to injecting new lines into headers of network protocols. They are not very well known and i think its worth mentioning it. HTTP response splitting is a web based attack where hacker manages to trick the server into injecting new lines into response headers along with arbitrary code. If you use GET/POST parameters in the headers like cookie or location, then someone could provide new lines with XSS attack.
</blockquote>
<p>
He gives some examples of how it might work via the <a href="http://php.net/header">header</a> function so that superglobals might be abused (like adding information on the URL to inject into $_GET). To prevent the attack, you just have to ensure that no special characters make it into the headers or cookies. He also mentions that the <a href="http://www.hardened-php.net/suhosin/">Suhosin</a> patch takes care of the issue automatically.
</p>]]></description>
      <pubDate>Mon, 15 Nov 2010 10:57:16 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: PHPScenario - A Free Split Testing Library for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15378</guid>
      <link>http://www.phpdeveloper.org/news/15378</link>
      <description><![CDATA[<p>
If you've ever wanted to do any split testing in your PHP-based application (show one group one thing, a different group another - gather statistics), you might want to check out a newly released tool from <i>James Sylvanus</i> called <a href="http://www.phpscenario.org/">PHPScenario</a>.
</p>
<blockquote>
I recently wrote up a bunch of split testing code for an application of mine (<a href="http://listy.us">listy.us</a>) and decided to round out the code, smooth the edges, and make it available under a BSD license. The result is phpScenario (<a href="http://www.phpscenario.org">http://www.phpscenario.org</a>), a free object-oriented split testing library for PHP 5.2+. I basically designed the library to be something you could just drop into a project, particularly a Zend Framework project, in a matter of minutes and be good to go. There are posts in the forums that provide very detailed setup instructions. At its very simplest, the library provides one-line A/B testing, and is fairly extensible. I think it'd make a great addition to designer/developer toolboxes.
</blockquote>
<p>
Right now it's in its early beta stages, but it has plenty of (generated) <a href="http://www.phpscenario.org/docs/">documentation</a> to help you out. There's also a basic example of its use and results <a href="http://www.phpscenario.org/">on the main site</a>. You can <a href="http://www.phpscenario.org/download.php">download it directly</a> if you'd like to try it out.
</p>]]></description>
      <pubDate>Wed, 03 Nov 2010 13:13:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: An Introduction to Split Testing in WordPress]]></title>
      <guid>http://www.phpdeveloper.org/news/14982</guid>
      <link>http://www.phpdeveloper.org/news/14982</link>
      <description><![CDATA[<p>
On NETTUTS.com today there's <a href="http://net.tutsplus.com/tutorials/wordpress/an-introduction-to-split-testing-in-wordpress/">a new tutorial</a> showing you how to create a split testing environment in your <a href="http://wordpress.org">WordPress</a> installation with the help of the Google Website Optimizer plugin.
</p>
<blockquote>
Split testing is a way to experiment with a live site and find which headlines and text are the most effective. Amazon uses split testing to determine which versions of their site convert customers better. We'll use WordPress and Google's Website Optimizer to test two different headlines, and find which works best at capturing customer emails.
</blockquote>
<p>
They walk you through their six step process to help you create the pages for testing, install the Google plugin and use the <a href="http://www.google.com/websiteoptimizer">Web Optimizer</a> tool to keep track of the results of your testing.
</p>]]></description>
      <pubDate>Wed, 18 Aug 2010 12:56:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Split WordPress Content Into Two or More Columns]]></title>
      <guid>http://www.phpdeveloper.org/news/13976</guid>
      <link>http://www.phpdeveloper.org/news/13976</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog there's a recent post from <i>Craig Buckler</i> showing how to <a href="http://www.sitepoint.com/blogs/2010/02/04/split-wordpress-content-into-multiple-sections/">split up your WordPress content</a> into two or more columns quickly and easily.
</p>
<blockquote>
WordPress is a great CMS, but implementing some features within your theme can require a little lateral thinking. The content for your page or post is usually output by the theme code using a single function call. But what if you need to split the content into two or more blocks? That might be necessary if your theme requires multiple columns or sections on the page.
</blockquote>
<p>
There's a built in call WordPress includes, "get_the_content", that returns the content rather than just echoing it out. With this handy function giving you just the content, you're free to split up the content however you want - on certain tags or as they suggest, using the "more..." tag and a few modifications to a few other scripts to split it out into DIV blocks.
</p>]]></description>
      <pubDate>Fri, 05 Feb 2010 12:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: Splitting PHP Class Files]]></title>
      <guid>http://www.phpdeveloper.org/news/13903</guid>
      <link>http://www.phpdeveloper.org/news/13903</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i>, in trying to solve a problem from work, needed a way to split out some code into two files to simplify and make it easier to use them individually.
</p>
<blockquote>
The issue I ran into was due to all the generated PHP classes being housed in a single file. I had to process two WSDL files that had several identical user-defined types in common. As a result, I couldn't simply include the two PHP files generated from them because PHP doesn't allow you to define two classes with the same name.
</blockquote>
<p>
He used the <a href="http://php.net/tokenizer">tokenizer</a> extension to create a simple command-line script that did the splitting for him. This script could potentially be used for splitting out other kinds of files too - "unpacking" them from their combined state. You can <a href="http://github.com/elazar/php-class-splitter/blob/master/php-class-splitter.php">download the latest version</a> from <i>Matthew</i>'s github account.
</p>]]></description>
      <pubDate>Mon, 25 Jan 2010 13:23:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Francois Zaninotto's Blog: Introducing Code Usability]]></title>
      <guid>http://www.phpdeveloper.org/news/12460</guid>
      <link>http://www.phpdeveloper.org/news/12460</link>
      <description><![CDATA[<p>
<i>Francois Zaninotto</i> has <a href="http://totalusability.posterous.com/introducing-code-usability">a recent post</a> looking at something every developer should consider when creating their applications - especially the libraries that might be used by other developers: code usability.
</p>
<blockquote>
Usability guidelines can sometimes be of use in awkward places. I try to apply them to source code. [...] Of course, coding guidelines are there to make the code easy to read by everyone. But code usability goes somehow beyond. Let's see some of the differences.
</blockquote>
<p>He compares good versus bad code in a few different areas:</p>
<ul>
<li>Bad Code Comments
<li>Split Up Code
<li>Cleanliness
<li>New Conventions
<li>Listen To User Feedback
</ul>
<p>
Each item is described, some including code examples to help make them more clear. Be sure to check out <a href="http://totalusability.posterous.com/introducing-code-usability#comments">the comments</a> for more good suggestions.
</p>]]></description>
      <pubDate>Tue, 05 May 2009 13:48:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex Netkachov's Blog: BAT file tips]]></title>
      <guid>http://www.phpdeveloper.org/news/10355</guid>
      <link>http://www.phpdeveloper.org/news/10355</link>
      <description><![CDATA[<p>
<i>Alex Netkachov</i> has updated <a href="http://www.alexatnet.com/node/22">a post he made</a> a while back (in 2006 in fact) about making Windows batch files (.BAT) that would do the same thing as some of the functions in PHP. He's added two more to it today - one for string replace and another for splitting a string.
</p>
<p>
The <a href="http://www.alexatnet.com/node/22#string_replace">replace</a> is as simple three line call, much the same as PHP's and the <a href="http://www.alexatnet.com/node/22#string_split">split call</a>, while a bit more complex, is still pretty straight forward (it just needs a few extra variables).
</p>
<p>
Other methods in <a href="http://www.alexatnet.com/node/22">the post</a> include a "switch" method, defining a procedure and updating variable by its name.
</p>]]></description>
      <pubDate>Fri, 06 Jun 2008 07:58:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ken Guest's Blog: The Date_Holidays package, a pack of splitters and a pear tree]]></title>
      <guid>http://www.phpdeveloper.org/news/10155</guid>
      <link>http://www.phpdeveloper.org/news/10155</link>
      <description><![CDATA[<p>
In <a href="http://blogs.linux.ie/kenguest/2008/05/09/the-date_holidays-package-a-pack-of-splitters-and-a-pear-tree/">a new post</a> to his blog today, <i>Ken Guest</i> talks about the split that's been made in a PEAR package for calculating the dates of holidays (<a href="http://pear.php.net/package/Date_Holidays">Date_Holidays</a>) for localization reasons.
</p>
<blockquote>
We decided that this one package should be split into subpackages: one subpackage per region/country. Some advantages of this approach are that each driver / filter / subpackage gets it's own stability and version number - we wouldn't have to keep increasing the version number of Date_Holidays each time a new driver is added or when an existing driver gets a significant number of fixes.
</blockquote>
<p>
To replace your current version of the package (with all of the regions built in) with a new version that still contains all versions, uninstall the Date_Holidays and grab the "Date_Holidays#all" package. Otherwise, you can check out <a href="http://pear.php.net/package/Date_Holidays">the PEAR page</a> for the main package and see the subpackage list if you only need one for your area.
</p>]]></description>
      <pubDate>Fri, 09 May 2008 12:56:39 -0500</pubDate>
    </item>
  </channel>
</rss>
