<?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, 08 Jan 2009 03:07:20 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Nessa's Blog: Working with Permissions in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9305</guid>
      <link>http://www.phpdeveloper.org/news/9305</link>
      <description><![CDATA[<p>
On her blog <i>Nessa</i> has a <a href="http://www.v-nessa.net/2007/12/20/working-with-permissions-in-php">brief look</a> at working with permissions with PHP via three functions - <a href="http://php.net/chown">chown</a>, <a href="http://php.net/chgrp">chgrp</a> and <a href="http://php.net/chmod">chmod</a>.
</p>
<blockquote>
PHP uses the same command as *nix systems when dealing with changing permissions for files. These commands are particularly useful in situations where PHP runs as a different user on the system, which is common when PHP is compiled as an Apache user.
</blockquote>
<p>
She includes a basic syntax for each of them and how one (chmod) could be used in an example of file creation.
</p>]]></description>
      <pubDate>Mon, 24 Dec 2007 09:22:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Thompson's Blog: PHP and Solaris - getcwd() Behavior]]></title>
      <guid>http://www.phpdeveloper.org/news/9022</guid>
      <link>http://www.phpdeveloper.org/news/9022</link>
      <description><![CDATA[<p>
<i>Rob Thompson</i> <a href="http://rob.sun3.org/php-code/php-and-solaris-getcwd-behavior/">passed along</a> some information that PHP users running on Solaris might want to check out - the slightly buggy behavior of the PHP getcwd function on the platform.
</p>
<blockquote>
Many functions within the PHP codebase relied upon a universally working getcwd() [C] call to expand paths and to find out where a script is being executed. In particular, Solaris does not assume that getcwd() is a privilege that should be granted to users in directories that don't have 'r' (read) permission, even if it has 'x' (execute) permissions. [...] Under Linux, getcwd() behaves normally but under Solaris, getcwd() does not work with the --x restrictive permissions.
</blockquote>
<p>
He does note, happily, that this issue is <a href="http://rob.sun3.org/php-code/php-and-solaris-getcwd-behavior/">cleared up with an upgrade</a> to PHP 5.2.5 as soon as possible. He had code snippets included in the post so you can test your installation for the problem too.
</p>]]></description>
      <pubDate>Mon, 12 Nov 2007 13:47:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Turn of the Crank: PHP 5, Sqlite, and Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/6255</guid>
      <link>http://www.phpdeveloper.org/news/6255</link>
      <description><![CDATA[<p>
Sometimes, a technology sounds like a great, simple answer to all of your problems. That, however, was not the experience of <a href="http://www.turnofthecrank.com/2006/09/11/php-5-sqlite-and-windows/">this blogger</a> when checking out SQLite on Windows.
</p>
<blockquote>
<p>
My first task at my new job was a simple enough one. All our customers have a review site that has a list of contacts. The file was contacts.html and it was just a static html file.
</p>
<p>
Since there are already 100s of sites using the static html, I wanted to avoid any kind of complex migration or external database. I decided to give SQLite a try since the db files are so portable. Each site would have it's own database with a single contacts table. Simple right? Let me go over all the problems I ran into.
</p>
</blockquote>
<p>
He <a href="http://www.turnofthecrank.com/2006/09/11/php-5-sqlite-and-windows/">starts off</a> with the fact that SQLite 3 doesn't work with PHP (different client drivers in PHP) and that PHP doesn't like SQLite 2 all that much either. His third and final experience? That SQLite isn't the brightest when it comes to working with directory permissions.
</p>]]></description>
      <pubDate>Tue, 12 Sep 2006 16:16:02 -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[PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly)]]></title>
      <guid>http://www.phpdeveloper.org/news/5995</guid>
      <link>http://www.phpdeveloper.org/news/5995</link>
      <description><![CDATA[<p>
Permissions in Unix-based systems have become one of the standard models for development all over the world. They're simple to learn and use while being extremely powerful at the same time. In <a href="http://www.phpbuilder.com/columns/eric_potvin20060809.php3">this new article</a> (as contributed by <i>Eric Potvin</i>) from PHPBuilder.com today, they bring this power to the realm of PHP with bitmasks.
</p>
<blockquote>
Bitmasking is a very useful method to emulate Unix-style file permissions (read/write/execute for example). What's nice about a PHP implementation is that you can configure your own bitmasks and use them for any kind of permissions in your scripts and applications. The implementation is relatively simple as well.
</blockquote>
<p>
They <a href="http://www.phpbuilder.com/columns/eric_potvin20060809.php3">start by defining</a> a few of the permission levels (add/delete/denied) in PHP constants before showing the bitMask() function you can use to check a user's permissions. They also include some simple pseudo-code to show how it's used. For more information, check out the <a href="http://www.gen-x-design.com/archives/bitmasks-emulate-unix-permissions-in-php">complete article here</a>.
</p>]]></description>
      <pubDate>Wed, 09 Aug 2006 16:01:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: PEAR Installer Issues]]></title>
      <guid>http://www.phpdeveloper.org/news/5198</guid>
      <link>http://www.phpdeveloper.org/news/5198</link>
      <description><![CDATA[<p>
<i>Pierre-Alain Joye</i> has two new posts on his blog today, both dealing with the PEAR installer, noting an "issue" that came up with it and PHP's safemode and a new version of it to correct a rather large bug.
</p>
<p>
The <a href="http://blog.thepimp.net/index.php/2006/04/18/58-open_basedir-and-safemode-pear-installer">first post</a> makes a point about bug reports and testing before sending. He recieved a report that the PEAR installer (go-pear) was broken when safemode is on. Fortunately, it turned out to be a lack of knowledge on the user's part and just being a matter of permissions.
</p>
<p>
<a href="http://blog.thepimp.net/index.php/2006/04/18/59-pear-installer-web-frontend-051-is-out">Post number two</a> talks about the newly released version of the PEAR installer, including a new version of the Web frontend (0.5.1). The new installer version corrects a bug where the server will have to request channel servers for every command over and over again - all due to the lack of a cache directory. 
</p>
<p>
You can grab this latest update for the installer <a href="http://go-pear.org/">here</a> and for the web frontend <a href="http://pear.php.net/pear_frontend_web">here</a>
</p>]]></description>
      <pubDate>Tue, 18 Apr 2006 13:23:07 -0500</pubDate>
    </item>
  </channel>
</rss>
