<?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 05:26:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: A Tour of PHP.INI]]></title>
      <guid>http://www.phpdeveloper.org/news/17243</guid>
      <link>http://www.phpdeveloper.org/news/17243</link>
      <description><![CDATA[<p>
On PHPMaster.com today <i>Callum Hopkins</i> has <a href="http://phpmaster.com/a-tour-of-php-ini/">written up an introduction to the php.ini</a>, the heart and soul of any PHP installation. With configuration options for just about everything, it can be confusing. This tutorial hits some of the highs and most commonly updated settings.
</p>
<blockquote>
Anyone who has a server using PHP has undoubtedly heard of php.ini - it's the configuration file used to control and customize PHP's run-time behavior. It provides a simple way to configure settings. [...] In this article I'll give an overview of some important settings I believe you should be concerned with when tweaking your own php.ini file.
</blockquote>
<p>The tutorial's broken up into a few different topics:</p>
<ul>
<li>the PHP engine
<li>Short tags
<li>Output buffering
<li>Automatic headers and footers
<li>Handling errors
<li>Time zones
</ul>]]></description>
      <pubDate>Mon, 12 Dec 2011 10:42:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[XpertDeveloper.com PHP "Magic Quotes" Explained]]></title>
      <guid>http://www.phpdeveloper.org/news/16863</guid>
      <link>http://www.phpdeveloper.org/news/16863</link>
      <description><![CDATA[<p>
If you're relatively new to the PHP world, you may be wondering why there has been so much emphasis put on "magic quotes" in the language's past. If you're not entirely sure what they are (and why to avoid them) take a look at <a href="http://www.xpertdeveloper.com/2011/09/php-magic-quotes-explained/">this quick overview</a> from XpertDeveloper.com.
</p>
<blockquote>
First of let me say that Magic Quotes is deprected from the PHP 5.3 and will be removed completely from the PHP 6. But as a developer you might face a situation when you have to work on application which runs on older version of PHP with some older functionality like rely on Magic Quotes.
</blockquote>
<p>
They introduce the simple concept behind the magic quotes idea and, thankfully, the settings and code you can use to turn it off. It's been deprecated in PHP 5.3 but some older versions came with it enabled. If you're currently running with it on, it's highly recommended to turn it off and refactor your code accordingly.
</p>]]></description>
      <pubDate>Thu, 15 Sep 2011 11:01:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Back to Basics: Managing PHP Configuration php.ini Directives]]></title>
      <guid>http://www.phpdeveloper.org/news/16688</guid>
      <link>http://www.phpdeveloper.org/news/16688</link>
      <description><![CDATA[<p>
<i>Jason Gilmore</i> gets "back to basics" in a new tutorial with a look at <a href="http://www.phpbuilder.com/columns/php-directives/Jason_Gilmore08032011.php3">managing configuration in your ini file</a> to tune it to just what you need.
</p>
<blockquote>
While PHP's configuration capabilities are indeed powerful, the sheer breadth and different ways in which these configuration directives can be set are often confusing and downright intimidating to newcomers. So in this article it worth meandering from the typically intermediate-level discussion and instead offer some insight into PHP's configuration-specific infrastructure.
</blockquote>
<p>
He starts by mentioning the <a href="http://php.net/phpinfo">phpinfo</a> function that generates the complete list of current settings for your installation. With that in hand and an idea of what settings are out there, he starts going through some of the basics of working with ini settings - updating the php.ini, setting values via a .htaccess file and chancing them directly in the executing script.
</p>]]></description>
      <pubDate>Mon, 08 Aug 2011 13:16:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Updating PHP Settings in Windows Azure]]></title>
      <guid>http://www.phpdeveloper.org/news/16178</guid>
      <link>http://www.phpdeveloper.org/news/16178</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has a new post today looking at how you can <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/04/11/updating-php-settings-in-windows-azure.aspx">update some PHP settings</a> in your  Windows Azure instance - an alternative to redeploying your every time your php.ini file might need an update.
</p>
<blockquote>
I came across this question on Twitter last week: "How can I turn display_errors on for an application that is running in Windows Azure?" I have to admit that I was stumped. The only thing I could think of was to re-deploy the application with an updated php.ini file. But, I happened to mention this question to <a href="http://twitter.com/#!/benlobaugh">Ben Lobaugh</a> who suggested a very simple idea: Store your PHP settings in some durable store external to your application as key-value pairs, then loop through the settings and update them with the <a href="http://us2.php.net/ini_set">ini_set</a> function when a page loads. 
</blockquote>
<p>
He puts a big disclaimer on his suggestion, noting that it's "a hack and only a hack" and can be useful for someone still learning how to work with Azure and deployment. He shows how to use a Table storage to save the values and make them easier for the application to grab at runtime. Using the tools from <a href="http://phpazure.codeplex.com/">their SDK</a>, fetching and setting those values is a simple process. An idea like this, while convenient, could potentially cause performance issues down the line, do be careful with this recommendation (and be sure to load test).
</p>]]></description>
      <pubDate>Tue, 12 Apr 2011 08:46:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: What you must know about PHP errors...]]></title>
      <guid>http://www.phpdeveloper.org/news/16001</guid>
      <link>http://www.phpdeveloper.org/news/16001</link>
      <description><![CDATA[<p>
<i>Giorgio Sironi</i> has a new post to the DZone.com Web Builder Zone today giving a high-level guide to some of the <a href="http://css.dzone.com/articles/what-you-must-know-about-php">PHP errors you could encounter</a> in your development time.
</p>
<blockquote>
While pure object-oriented languages produces mainly exceptions to signal an error, PHP started out as procedural and so it has a wide range of errors that can be raised along with exceptions.
</blockquote>
<p>He talks about a few of the most common error related issues:</p>
<ul>
<li>Exceptions
<li>Errors
<li>Error Types (E_NOTICE, E_PARSE, etc.)
<li>php.ini directives
<li>PHP functions for setting error handlers
</ul>]]></description>
      <pubDate>Fri, 04 Mar 2011 13:15:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Upload Large Files in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14970</guid>
      <link>http://www.phpdeveloper.org/news/14970</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today <i>Craig Buckler</i> talks about uploading large files in your PHP application. He points to two other resources - <a href="http://www.php.net/manual/en/features.file-upload.php">this manual page</a> and <a href="http://articles.sitepoint.com/article/handle-file-uploads-php">this introductory tutorial</a> about handling file uploads to get the ball rolling.
</p>
<blockquote>
One of the most popular uses is image uploads. Your users can submit photographs from a form without resorting to FTP or other convoluted methods. HTML5 and Flash also permit drag and drop, so the operation is likely to become easier as browsers evolve. This is where the problems can begin.
</blockquote>
<p>
He points out the large size of the images most modern cameras work with and how PHP, with its basic settings, can't handle a lot of the resulting images. He mentions the upload_max_filesize and post_max_size settings you can set in either your php.ini or via an .htaccess (or even in your script). There's also a few <a href="http://www.sitepoint.com/blogs/2010/08/17/upload-large-files-in-php/#comments">helpful comments</a> with more tips on large file handling.
</p>]]></description>
      <pubDate>Tue, 17 Aug 2010 08:44:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: SugarCRM Installation Error]]></title>
      <guid>http://www.phpdeveloper.org/news/14803</guid>
      <link>http://www.phpdeveloper.org/news/14803</link>
      <description><![CDATA[<p>
In the latest post to her blog <i>Lorna Mitchell</i> talks about some of the <a href="http://www.lornajane.net/posts/2010/SugarCRM-6-Installation-Error">issues she had</a> when upgrading to the latest version of SugarCRM (6.0.0).
</p>
<blockquote>
I noticed that SugarCRM have just released their new version 6.0.0, and since my sugarcrm installation is madly out of date and I'm about to start using it again, I thought I'd just throw the old one away and install from scratch. I had no problems until I reached the final installation stage, when clicking the "install" button would return a 404. 
</blockquote>
<p>
After running through things a few times more, she finally corrected the cause of some of the errors of this final step - increasing the memory_limit setting, upload_file_size as well as installing cURL support for PHP. With these changes, the install worked perfectly.
</p>]]></description>
      <pubDate>Fri, 16 Jul 2010 09:17:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ruslan Yakushev's Blog: PHP on IIS: MonitorChangesTo setting in FastCGI]]></title>
      <guid>http://www.phpdeveloper.org/news/14277</guid>
      <link>http://www.phpdeveloper.org/news/14277</link>
      <description><![CDATA[<p>
Ever frustrated by the fact that the php.ini changes to take effect in your FastCGI setup you need to either flush the current instances or just wait until they die off. You might want to take a look at the latest post from <i>Ruslan Yakushev</i> about the <a href="http://ruslany.net/2010/03/php-on-iis-monitorchangesto-setting-in-fastcgi/">MonitorChangesTo setting</a> that's recently been introduced.
</p>
<blockquote>
The latest releases of the <a href="http://ruslany.net/2010/01/fastcgi-extension-1-5-for-iis-5-1-and-iis-6-0-rtw/">FastCGI Extensoin 1.5</a> and <a href="http://ruslany.net/2010/03/important-update-for-iis-7-0-fastcgi-module/">FastCGI update for IIS 7.0</a> have a new configuration setting monitorChangesTo  that takes an absolute path to a file that FastCGI will monitor for changes. In case of PHP this means that you can set monitorChangesTo  to a path to php.ini file, so that any time it is modified the FastCGI module will restart the php-cgi.exe to pick up the configuration changes.
</blockquote>
<p>
He includes a few examples of how to use it with different versions of IIS - 5.1/6.0, 7.0 and the latest - 7.5. Configuration settings and screenshots are included as needed.
</p>]]></description>
      <pubDate>Wed, 31 Mar 2010 12:02:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Override PHP Configuration Options]]></title>
      <guid>http://www.phpdeveloper.org/news/14129</guid>
      <link>http://www.phpdeveloper.org/news/14129</link>
      <description><![CDATA[<p>
<i>Craig Buckler</i> has added a new post to the SitePoint PHP blog today that looks at some of the PHP configuration options and <a href="http://www.sitepoint.com/blogs/2010/03/04/how-to-override-php-configuration-settings/">how you can change them</a> from two different places (besides the php.ini file).
</p>
<blockquote>
Configuring PHP is easy. You can change almost any aspect of the interpreter within the php.ini configuration file, e.g. modify error handling, increase memory usage, etc. Unfortunately, problems can occur when you move your application to a live hosting environment or are distributing the code to customers. ISPs usually lock down the php.ini configuration file - especially on shared hosting. This could cause your application to fail.
</blockquote>
<p>
If you're lucky enough to be able to use htaccess files, his first method will work for you - using the "php_flag" or "php_value" directives to change settings for your entire application. The other option is more on an as needed basis - using the <a href="http://php.net/ini_set">ini_set</a> method to change configuration options. Be careful, though, only some configuration options can be changed using these methods. Some still require changes to the php.ini and a restart of the web server.
</p>]]></description>
      <pubDate>Thu, 04 Mar 2010 10:09:45 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Programming Facts Blog: Upload large(Big) files in PHP using .htaccess]]></title>
      <guid>http://www.phpdeveloper.org/news/14044</guid>
      <link>http://www.phpdeveloper.org/news/14044</link>
      <description><![CDATA[<p>
<i>Rakshit Patel</i> has posted a tip to the Programming Facts blog that those out there wanting to upload larger files through your application - change your settings <a href="http://www.programmingfacts.com/2010/02/16/upload-largebig-files-php-htaccess/">via one of three ways</a> to tell PHP it's okay.
</p>
<blockquote>
I have seen many developers who find difficulties when working with larger files upload in php. When files which are too large in size [...] If you are uploading file which is larger than 2MB size than here i am showing you the way to upload larger files using PHP.
</blockquote>
<p>
The method's pretty much the same in each of the three methods. You can either have the settings in your httpd.conf (if you have access to it), in the php.ini or in a .htaccess file in the directory your PHP script is in.
</p>]]></description>
      <pubDate>Wed, 17 Feb 2010 13:19:06 -0600</pubDate>
    </item>
  </channel>
</rss>

