<?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>Sun, 12 Feb 2012 15:23:47 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Github to Jira Bug Migration Script]]></title>
      <guid>http://www.phpdeveloper.org/news/16019</guid>
      <link>http://www.phpdeveloper.org/news/16019</link>
      <description><![CDATA[<p>
As part of a migration the <a href="http://github.com/joindin/joind.in">Joind.in project</a> made to track their bugs on a hosted Jira instance instead of the Issue Tracker on Github, <i>Lorna Mitchell</i>, one of the leads on the project has written up an import script she used to move current issues. The code is <a href="http://www.lornajane.net/posts/2011/Github-To-Jira-Bug-Migration-Script">in her latest post</a>.
</p>
<blockquote>
I migrated only our open issues, and comments (and the comments ended up a bit weirdly formatted on the other end but this was the best they could do). It was nothing pretty or clever but in case it's useful to someone else.
</blockquote>
<p>
The script connects to the github API and pulls down the information for the open issues including their titles, user and body of the issue. This is then used to make another connection for each to fetch their comments. The whole thing is dumped out to a CSV file that can be easily imported by the Jira team.
</p>]]></description>
      <pubDate>Wed, 09 Mar 2011 10:18:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: PHP Format abstraction with a simple class]]></title>
      <guid>http://www.phpdeveloper.org/news/15901</guid>
      <link>http://www.phpdeveloper.org/news/15901</link>
      <description><![CDATA[<p>
<i>Phil Sturgeon</i> has <a href="http://philsturgeon.co.uk/news/2011/02/php-format-abstraction-with-a-simple-class">posted about a utility</a> he's released that can help convert data from one state to another such as arrays to JSON and XML to CSV - <a href="https://github.com/philsturgeon/php-format">php-format</a>.
</p>
<blockquote>
Convert between Array, Object, JSON, XML, CSV and Serialized data and back again easily. I'll add a few more types like YAML when I can be arsed to work out PECL for MAMP.
</blockquote>
<p>
There's a code snippet in <a href="http://philsturgeon.co.uk/news/2011/02/php-format-abstraction-with-a-simple-class">his post</a> showing the conversion of an array to JSON then to XML then back to an array. The code is pretty simple to follow with "to" and "from" methods for each format making it simple to extend for your own uses.
</p>]]></description>
      <pubDate>Mon, 14 Feb 2011 12:15:13 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building an IP-to-Country Mapping Application with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11876</guid>
      <link>http://www.phpdeveloper.org/news/11876</link>
      <description><![CDATA[<p>
DevShed has launched a new four-article series today looking at <a href="http://www.devshed.com/c/a/PHP/Building-an-IP-to-Country-Mapping-Application-with-PHP/">resolving a user's IP to their country</a> via the database provided <a href="http://software77.net/cgi-bin/ip-country/geo-ip.pl">here</a>.
</p>
<blockquote>
If you have content in several different languages, your visitors probably speak several different languages as well. Wouldn't it be nice to serve them content from your site in their native language, based on the country from which they hail? You can, even if you're a small company, with an application that tells you a visitor's country based on their IP address. This four-part article series will show you how to build the application and incorporate it into your web site.
</blockquote>
<p>
They just get things set up in this first part of the series - grabbing the CSV file from <a href="http://software77.net/cgi-bin/ip-country/geo-ip.pl">the site</a>, creating the MySQL table to import it into and running a script to parse the CSV and push its data into the table.
</p>]]></description>
      <pubDate>Wed, 04 Feb 2009 08:47:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[TotalPHP.com: Creating a text or csv file of information from your database ]]></title>
      <guid>http://www.phpdeveloper.org/news/11542</guid>
      <link>http://www.phpdeveloper.org/news/11542</link>
      <description><![CDATA[<p>
On the TotalPHP site there's <a href="http://www.total-php.com/article/15/creating-a-text-or-csv-file-of-information-from-your-database/">a new tutorial</a> showing how to pull data from your database and export it as a CSV file that tools like Excel can read in and use.
</p>
<blockquote>
There are some occasions where you would want to export your site's information in CSV or similar text format. You might want to do this so you can view reports in a spreadsheet, or you might want an export of your product information to upload to a service like Google Products. Either way the method and end result are essentially the same.
</blockquote>
<p>
The tutorial shows how to grab the information (via the mysqli functionality in PHP5) and formatting each row with the correct values in a certain order. Finally, the entire contents are echoed back out with the correct header() to force a download on the user's browser.
</p>]]></description>
      <pubDate>Wed, 10 Dec 2008 08:47:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Waterson's Blog: Introduction to PHP and MySQL  How they work together.]]></title>
      <guid>http://www.phpdeveloper.org/news/11005</guid>
      <link>http://www.phpdeveloper.org/news/11005</link>
      <description><![CDATA[<p>
<i>Kevin Waterson</i> has <a href="http://www.phpro.org/tutorials/Introduction-to-PHP-and-MySQL.html">posted a new tutorial</a> (a very comprehensive one) seeking to make introductions between a developer new to PHP and the MySQL abilities the language has.
</p>
<blockquote>
This tutorial is aimed at those new to PHP and MySQL. The object of this tutorials is to show by way of example how to use php to CREATE a database, how to CREATE a table, how to INSERT data into a database, and how to SELECT that data and display it on a web page.
</blockquote>
<p>
The tutorial doesn't get into working with forms and the data submitted in them, but it does give a great overview of basic SQL commands, pushing data into tables and some other simple functions (loading a CSV file, preventing SQL injection and getting the last inserted ID).
</p>]]></description>
      <pubDate>Fri, 12 Sep 2008 10:08:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: Five New Articles, Tutorials and Helpers]]></title>
      <guid>http://www.phpdeveloper.org/news/8629</guid>
      <link>http://www.phpdeveloper.org/news/8629</link>
      <description><![CDATA[<p>
The Bakery has five new items they've recently posted - a few new articles, helper information and tutorials. Here's the list:
</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/csv-helper-php5">CSV Helper</a> - I was recently outputting some comma-delimited data and thought I would benefit from a simple csv helper
<li><a href="http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial">p28n, the top to bottom persistent internationalization tutorial</a> - For some developers, allowing a website to support multiple languages is essential. Luckily cakePHP 1.2 has the foundations available to make this possible.
<li><a href="http://bakery.cakephp.org/articles/view/tracking-navigation-history-of-a-user">Tracking navigation history of a user</a> - Many times it can be very useful to track the navigation history of a user. [...] With this HistoryComponent, it's extremely easy to handle such actions.
<li><a href="http://bakery.cakephp.org/articles/view/habtm-hacks-to-menage-columns-in-both-models">Habtm hacks to menage columns in both models</a> - I had a habtm relationship between two models and when i did a "findall" in a model i couldn't filter the rows with a clause from the the other model.
<li><a href="http://bakery.cakephp.org/articles/view/secureget-component">SecureGet Component</a> - I am not pretending this can replace ACL or more complex implementation, it's just a small component, inspired a bit from the Security component.
</ul>
<p>
If you're a CakePHP developer, you'd do well to check out <a href="http://bakery.cakephp.org">The Bakery</a> for these and more great Cake-related articles, tutorials and information.
</p>]]></description>
      <pubDate>Tue, 11 Sep 2007 09:29: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[InformBank.com: How to create Microsoft Office documents on the fly using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5971</guid>
      <link>http://www.phpdeveloper.org/news/5971</link>
      <description><![CDATA[<p>
In <a href="http://web.informbank.com/articles/technology/php-office-documents.htm">this new tutorial</a> from InformBank posted today, they show how to use PHP (and a few handy tricks) to create Microsoft Office documents on the fly.
</p>
<blockquote>
<p>
Sometimes you have to generate some MS Office document for the users of your website using dynamic data. For example, few days ago, I had to generate some Excel reports using data from some tables in MySQL. I knew about the COM but it has a lot of disadvantages, including Windows-only platform and not very high speed. CSV is much easier and faster but you can't format the cells to make them better-looking. The method I've never thought about before was using HTML. 
</p>
<p>
So here came the inspiration and after some research and experiments I wrote this tutorial for all of you who are looking how to create Office documents on the fly using PHP. Of course, I included the COM methods and some methods to create other MS Office documents like DOC and PPT, to make this tutorial as full and as useful as possible.
</p>
</blockquote>
<p>
The <a href="http://web.informbank.com/articles/technology/php-office-documents.htm">tutorial starts with</a> the creation of documents (Word, Excel, Powerpoint) with the COM functionality (the standby method PHP has had for a while). Of course, it also requires the script to be running on Windows to work. So, what's the other option? As he goes on to explain, it's something as simple as HTML.
</p>
<p>
He includes two examples of alternate mathods, showing hhow to use HTML or a CSV file to create a custom Excel document. He also throws in some code to help you stream out the resulting document as a zip file to the browser.
</p>]]></description>
      <pubDate>Mon, 07 Aug 2006 11:57:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Use PHP to build a search engine optimization app]]></title>
      <guid>http://www.phpdeveloper.org/news/4991</guid>
      <link>http://www.phpdeveloper.org/news/4991</link>
      <description><![CDATA[The IBM developerWorks site has posted <a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-seo1-i.html?S_TACT=105AGX01&S_CMP=HP">part one</a> of a new series - using PHp o build a search engine optimization application.
<p>
<quote>
<i>
PHP, a dynamic Web-based programming language, takes a variety of input formats and uses a built-in SOAP client to obtain information from the Web. PHP, combined with applications using search engine optimization (SEO), is a powerful tool for obtaining information from major search engines, allowing this information to guide a webmaster's online marketing and SEO strategies. Find out how to take advantage of these strategies by building the back end of an application to monitor and track your client's SEO efforts.
</i>
</quote>
<p>
<a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-seo1-i.html?S_TACT=105AGX01&S_CMP=HP">The application</a> takes in CSV files that contain keyword and domain combinations. The positions on each of the search engines is generated from these. You'll need a bit of prior PHP knowledge to work through it and you'll need a place where a web server, PHP, a database, and Java are installed.]]></description>
      <pubDate>Tue, 14 Mar 2006 15:43:26 -0600</pubDate>
    </item>
  </channel>
</rss>

