<?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>Thu, 24 May 2012 19:38:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPBuilder.com: Building a Multilingual PHP Website]]></title>
      <guid>http://www.phpdeveloper.org/news/16802</guid>
      <link>http://www.phpdeveloper.org/news/16802</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new post from <i>Vojislav Janjic</i> with three methods (sans-framework) that you can use to <a href="http://www.phpbuilder.com/columns/MultilingualPHPSite/index.php3">create a multilingual website</a> - some a bit easier to maintain than others.
</p>
<blockquote>
Fast internet growth has brought many opportunities in the global market. Businesses can reach their customers across many countries, and information sharing is not limited to a local area or country anymore. This is why there is an increasing tendency for multilingual websites. By having a website in multiple languages, you can target local markets more easily. Also, it is more convenient to use a website in your native language.
</blockquote>
<p>
His three methods are all relatively simple, but they all have their good and bad points - making separate HTML/views for each language, creating XML files with different versions of the content or storing the translations in a MySQL database. He gives quick code snippets showing how to implement each of them, some basing the language on a cookie value, others on a GET variable passed to the page.
</p>]]></description>
      <pubDate>Thu, 01 Sep 2011 09:02:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tutorialzine.com: Building a Website with PHP, MySQL and jQuery Mobile, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/16759</guid>
      <link>http://www.phpdeveloper.org/news/16759</link>
      <description><![CDATA[<p>
From Tutorialzine.com today, they've posted the <a href="http://tutorialzine.com/2011/08/jquery-mobile-product-website/">first part of a series</a> looking at the construction of a full mobile website using PHP, MySQL and jQuery mobile.
</p>
<blockquote>
In this two-part tutorial, we will be building a simple website with PHP and MySQL, using the Model-View-Controller (MVC) pattern. Finally, with the help of the <a href="http://jquerymobile.com/">jQuery Mobile framework</a>, we will turn it into a touch-friendly mobile website, that works on any device and screen size. In this first part, we concentrate on the backend, discussing the database and MVC organization. Next time, we will be writing the views and integrating jQuery Mobile.
</blockquote>
<p>
Their simple application lets you browse products in a storefront with products and their categories. They don't use any particular framework and instead opt for a "include all" approach in their example. This makes it simpler to bootstrap, but shouldn't be used in a production-ready version of the application. There's simple frameworks (like <a href="http://codeigniter.com">CodeIgniter</a> out there that can help take it to the next level without much more complexity). You can see a <a href="http://demo.tutorialzine.com/2011/08/jquery-mobile-product-website/">demo of it in action</a> or just <a href="http://demo.tutorialzine.com/2011/08/jquery-mobile-product-website/mobile-store.zip">download the source</a> to get started hacking.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 12:33:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[StackOverflow.com: The Definitive Guide To Forms based Website Authentication]]></title>
      <guid>http://www.phpdeveloper.org/news/16713</guid>
      <link>http://www.phpdeveloper.org/news/16713</link>
      <description><![CDATA[<p>
If you haven't seen it yet, there's a post over on StackOverflow that's been growing over the past few days about <a href="http://stackoverflow.com/questions/549/the-definitive-guide-to-forms-based-website-authentication">form-based authentication in websites</a>. The author wants to make a definitive resource for people to use when making good, secure user authentication systems.
</p>
<blockquote>
Please help us create the definitive resource for this topic. We believe that stackoverflow should not just be a resource for very specific technical questions, but also for general guidelines on how to solve variations on common problems. "Form Based Authentication For Websites" should be a fine topic for such an experiment.
</blockquote>
<p>
They want to include topics like logins, storing passwords, "forgot password" security, OpenID, browser autocompletion, password strength, email validation and more. They already laid out eight different sections with summaries including:
</p>
<ul>
<li>How To Remain Logged In - The Infamous "Remember Me" Checkbox
<li>Using Secret Questions
<li>Checking Password Strength
<li>Much More - Or: Preventing Rapid-Fire Login Attempts
<li>Two-Factor Authentication and Authentication Providers
</ul>
<p>
There's some <a href="http://stackoverflow.com/questions/549/the-definitive-guide-to-forms-based-website-authentication">good feedback from other users</a> with other suggestions and links to external resources that could shed some more light on the topic.
</p>]]></description>
      <pubDate>Fri, 12 Aug 2011 12:13:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sasa Stamenkovic's Blog: Create Kick-ass Website in no Time with Silex]]></title>
      <guid>http://www.phpdeveloper.org/news/16642</guid>
      <link>http://www.phpdeveloper.org/news/16642</link>
      <description><![CDATA[<p>
<i>Sasa Stamenkovic</i> has a <a href="http://dev.umpirsky.com/create-kick-ass-website-in-no-time-with-silex/">quick post</a> to his blog talking about a switch he made away from the <a href="http://framework.zend.com">Zend Framework</a> over to <a href="http://silex-project.org/">Silex</a> for a simple portfolio site.
</p>
<blockquote>
Last week I needed a small website. I wanted it to be quick and dirty. Well, blazing fast and not so dirty. I heard best about <a href="http://silex-project.org/">Silex</a>, so I gave it a shot. It was more then good experience. It worked like a charm, it was fun to use and site was completed in one day.
</blockquote>
<p>
He includes two code snippets - one is the basic "hello world" example that most Silex tutorials reference and the other is more specific to his site. It defines the routes and the (Twig) templates they relate to. A few <a href="https://github.com/umpirsky/umpirsky.com/tree/master/vendor">submodules</a> helped him get this and other functionality working (like the Forms component and Swiftmailer for a contact form). You can find the full source for the site over <a href="https://github.com/umpirsky/umpirsky.com">on github</a>.
</p>]]></description>
      <pubDate>Wed, 27 Jul 2011 12:02:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin Carmony's Blog: Working with Middle-Scale Websites]]></title>
      <guid>http://www.phpdeveloper.org/news/16618</guid>
      <link>http://www.phpdeveloper.org/news/16618</link>
      <description><![CDATA[<p>
In a new post <i>Justin Carmony</i> looks at what it <a href="http://www.justincarmony.com/blog/2011/07/18/working-with-middle-scale-websites/">means to me a "middle-scale website"</a> and has some recommendations for anyone working with their applications and considering things like scalability, overcompensation and finding real results through profiling.
</p>
<blockquote>
Hopefully at some point, your website is going to get a lot of traffic. Yay, you've reached your goal of getting good traffic, but it is soon followed by issues with performance and load. I like to call these the growing pains of a website. So as a web developer, I suddenly have the epiphany of "Hey, I need to scale my website!" What follows next is the biggest mistake a web developer can make: They start looking at articles on how Google scales, or maybe how Facebook manages all of their traffic. This is a mistake! To be brutally honest, you are not Google. You are not Facebook. You are not Twitter. You are a website that receives less than 0.000001% of the traffic that some of the major websites receive.
</blockquote>
<p>
He includes a "reality check" of the setup behind a popular social site, <a href="http://stackexchange.com/">StackExchange</a>, with comments from their <a href="http://blog.serverfault.com/post/stack-exchanges-architecture-in-bullet-points/">own post about their infrastructure</a>. He talks about things included in a move to "middle-scale" like adding caching, performance tweaking, moving to a multiple server model and using replication.
</p>]]></description>
      <pubDate>Thu, 21 Jul 2011 11:53:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Xdebug on github]]></title>
      <guid>http://www.phpdeveloper.org/news/16508</guid>
      <link>http://www.phpdeveloper.org/news/16508</link>
      <description><![CDATA[<p>
As <i>Derick Rethans</i> notes in his latest post, the <a href="http://derickrethans.nl/xdebug-git.html">Xdebug project is now on github</a> and can be found <a href="https://github.com/derickr/xdebug">under his account</a>.
</p>
<blockquote>
I've just opened my Xdebug repository on github. Importing my old SVN repository was a bit of a task. With the help of Ole Marius Smestad I managed to cook up a bash script to import and fix-up the repository. In the meanwhile I've learned more about git than I ever wanted to know, but still not enough.
</blockquote>
<p>
Besides the source for <a href="http://xdebug.org/">Xdebug</a> itself, you'll also notice repositories for the <a href="https://github.com/derickr/xdebug.org">Xdebug website</a>, the <a href="https://github.com/derickr/gtkdbgp">GtkDBGp client</a> and the <a href="https://github.com/derickr/dbgp">DBGp</a> protocol definition.
</p>
]]></description>
      <pubDate>Thu, 23 Jun 2011 08:08:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP]]></title>
      <guid>http://www.phpdeveloper.org/news/16492</guid>
      <link>http://www.phpdeveloper.org/news/16492</link>
      <description><![CDATA[<p>
On the "PHP and Me" blog there's a new entry from <i>Pinpin Bysma</i> showing how to use the PHP-based deployment tool <a href="http://phing.info">Phing</a> to <a href="http://phpandme.tumblr.com/post/6662397015/use-phing-to-update-your-svn-version-controlled-website">update your production website via an FTP connection</a>, automated by a Phing build.
</p>
<blockquote>
If you're working on a PHP project, like with any other project, probably comes a time when you need to "build a new release," e.g. update the production web site with the latest version of the code. And doing the whole thing manually isn't the most efficient way to get things done, especially if you're lazy, or have to do that every once in a while, over a long period of time. [...] Obviously if updating the site itself could be done without FTP but through a simple svn switch, things would be easier. Still, Phing would allow to make things easier just as nicely. It could for example still be used to create the new tag, trigger the switch, etc
</blockquote>
<p>
He introduces the process by showing a basic Phing build file that uses the PEAR VersionControl_SVN component to get the latest from the repository and push it to another directory. There was one thing that he wanted to do that the default SVN task couldn't - export the difference between two tags. To make this happen, he had to extend Phing and make a new task - SvnExportDiff. He includes the code for this new task and an updated build file to show it all in use - complete with the FtpDeploy to push the code live.]]></description>
      <pubDate>Mon, 20 Jun 2011 11:57:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Taking screenshots of websites in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16479</guid>
      <link>http://www.phpdeveloper.org/news/16479</link>
      <description><![CDATA[<p>
In a new post <i>Sameer Borate</i> shows you how to <a href="http://www.codediesel.com/php/taking-screenshots-of-websites-in-php/">take screenshots of websites</a> with PHP (and a little help from the <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltoimage</a> tool).
</p>
<blockquote>
aking screenshos of websites is not a frequent requirement for developers but can come handy on many occasions. Although there are some nice solutions on the web, a particular one I found very good is <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltoimage</a>. wkhtmltoimage is a simple shell utility which can be used to convert html to images using the <a href="http://www.webkit.org/">webkit</a> rendering engine, and <a href="http://qt.nokia.com/">qt</a>.
</blockquote>
<p>
He includes some brief instructions of how to get the tool installed and how to run it (via the command line first) to grab a screenshot of the bbc.com site. To use it in PHP, he suggests either using it in a <a href="http://php.net/shell_exec">shell_exec</a> type of function or by using the <a href="https://github.com/knplabs/snappy">snappy</a> wrapper that handles some of the interfacing with wkhtmltoimage for you.
</p>]]></description>
      <pubDate>Thu, 16 Jun 2011 11:14:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Introducing the Yii PHP Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/16259</guid>
      <link>http://www.phpdeveloper.org/news/16259</link>
      <description><![CDATA[<p>
In another in his framework series, <i>Jason Gilmore</i> has a new post on PHPBuilder.com about another popular framework - <a href="http://www.phpbuilder.com/columns/yii-php-framework/Jason_Gilmore04262011.php3">the Yii framework</a>. He introduces you to the framework and shows the creation of a sample, basic site.
</p>
<blockquote>
Frameworks have been the topic du jour here at PHPBuilder.com, with numerous recent articles covering DooPHP and Fat-free. In this latest stop on the framework tour, we'll check out Yii, a relatively new framework (less than three years old) that boasts an impressive array of features and an equally impressive array of users, among them the enormously popular <a href="http://www.stay.com/">Stay.com</a>.
</blockquote>
<p>
He walks you through the install (downloading the latest version) and shows how to use the command-line tool to automatically generate the basic website structure. He continues on showing how to update the main page and template, how to get it connected to a MySQL database and how to use the Gii tool to create basic admin forms for working with the tables.
</p>]]></description>
      <pubDate>Wed, 27 Apr 2011 11:03:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: How to parse web pages using XPath]]></title>
      <guid>http://www.phpdeveloper.org/news/16228</guid>
      <link>http://www.phpdeveloper.org/news/16228</link>
      <description><![CDATA[<p>
On the Script-Tutorials.com site there's a new article showing you how to <a href="http://www.script-tutorials.com/how-to-parse-web-pages-using-xpath/">use XPath to parse web pages</a>, complete with screenshots of the page and the code to make it happen.
</p>
<blockquote>
Today I will tell you how you can make parsers of remote HTML pages (in PHP). In this article I will show you how to perform xpath queries to Web pages. XPath - a query language to elements of xml or xhtml document. To obtain the necessary data, we just need to create the necessary query. For the work, we also need: browser Mozilla Firefox, <a href="https://addons.mozilla.org/en-us/firefox/addon/firebug/">firebug</a> and <a href="https://addons.mozilla.org/ru/firefox/addon/firepath/">firepath</a> plugins. For our experiment, I suggest this webpage <a href="http://news.google.com/news/section?pz=1&cf=all&topic=t&ict=ln">Google Sci/Tech News</a>. Of course you can choose any other web page too.
</blockquote>
<p>
They provide <a href="http://www.script-tutorials.com/demos/59/index.php">two</a> <a href="http://www.script-tutorials.com/demos/59/index-2.php">demos</a> and a <a href="http://www.script-tutorials.com/demos/59/source.zip">downloadable package</a> with everything you need. The script pulls in the page as a DOM document (which works as long as it's correctly formatted XML) and spits back out the matches from a few different XPath expressions. There's <a href="http://www.google.com/#q=xpath+examples">all sorts of sites</a> out there that can help you with examples of other XPath expressions and syntax.
</p>]]></description>
      <pubDate>Thu, 21 Apr 2011 09:49:59 -0500</pubDate>
    </item>
  </channel>
</rss>

