<?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 11:46:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP-Security.net: Suhosin 0.9.34-DEV Installation HowTo]]></title>
      <guid>http://www.phpdeveloper.org/news/17903</guid>
      <link>http://www.phpdeveloper.org/news/17903</link>
      <description><![CDATA[<p>
On the PHP-Security.net blog today there's <a href="http://www.php-security.net/archives/8-Suhosin-0.9.34-dev-installation-howto.html">a new post</a> showing how to get the latest version of the <a href="http://www.hardened-php.net/suhosin/">Suhosin</a> security patch for PHP installed. 
</p>
<blockquote>
With the recently released PHP 5.4, the Suhosin patch and extension were removed from many Linux distribution packages (i.e., Debian et al.) and until three weeks ago, there was no possibility to compile and run the Suhosin extension under PHP 5.4. This little howto shall serve as installation instruction for Debian Wheezy users - your mileage may vary. I blogged about this here.
</blockquote>
<p>
They start with the apt-get commands to install the latest PHP5 for your distribution (yum commands are similar, of course) and includes the <a href="https://github.com/stefanesser/suhosin/tarball/master">location to download</a> the latest Suhosin version from <i>Stefan Esser</i>'s github account. Unpack it, compile and "phpize" it and if all goes well, you should have a shared module built and ready for use.
</p>]]></description>
      <pubDate>Thu, 03 May 2012 11:54:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Spooling emails with Symfony2 on VPS and Shared Hosting]]></title>
      <guid>http://www.phpdeveloper.org/news/17882</guid>
      <link>http://www.phpdeveloper.org/news/17882</link>
      <description><![CDATA[<p>
The ServerGrove blog has a recent post for the Symfony2 users out there, showing how you can <a href="http://blog.servergrove.com/2012/04/27/spooling-emails-with-symfony2-on-vps-and-shared-hosting/">spool emails on a VPS/shared hosting</a> using <a href="http://swiftmailer.org/">SwiftMailer</a> and the Symfony2 bundle to interact with it.
</p>
<blockquote>
When you send an email, the mailer communicates with a remote server in charge of receiving the message and of delivering it to the recipient. This process can cause your form to submit slowly as it depends on how fast the mail server responds. Spooling allows us to decouple the application execution line from the process of the sending one, two, or as many emails as we need.
</blockquote>
<p>
They show you how to configure the <a href="https://github.com/symfony/SwiftmailerBundle">SwiftMailerBundle</a> with the mail server's settings, how to set up the command to send the emails and the settings you'll need to put in your cron file to run the "send" operation periodically.
</p>]]></description>
      <pubDate>Mon, 30 Apr 2012 10:20:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Store datasets directly in shared memory with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17426</guid>
      <link>http://www.phpdeveloper.org/news/17426</link>
      <description><![CDATA[<p>
On the IBM developerWorks site today there's a new tutorial showing you how to <a href="http://www.ibm.com/developerworks/opensource/library/os-php-shared-memory/index.html">store shared data</a> directly to a shared memory space of your PHP application.
</p>
<blockquote>
Once created, and given proper permissions, other processes in the same machine can manipulate those segments by: read, write, and delete. This means that an application written in C can share information with an application written in other languages, such as Java or PHP. They can all share information, as long as they can access and understand that information. [...] This article's proposal is simple, learn how to create and manipulate shared memory segments with PHP and use them to store datasets that other applications can use.
</blockquote>
<p>
Your PHP installation will need to have been compiled with "enable-shmop" to work with the code in this tutorial. Their examples show how to use the <a href="http://php.net/shmop_open">shmop_open</a>, <a href="http://php.net/shmop_write">shmop_write</a> and other related functions to read, write, remove and close segments in the shared memory space. They also include an example of using the <a href="https://github.com/klaussilveira/SimpleSHM">SimpleSHM</a> library to make it easier to interact with the shared memory space as a standard storage location.
</p>]]></description>
      <pubDate>Fri, 20 Jan 2012 11:29:24 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Deploying Symfony2 Projects on Shared Hosting with Capifony]]></title>
      <guid>http://www.phpdeveloper.org/news/16834</guid>
      <link>http://www.phpdeveloper.org/news/16834</link>
      <description><![CDATA[<p>
The ServerGrove blog, a hosting provider whose services include shared hosting, has posted a guide to help you <a href="http://blog.servergrove.com/2011/09/07/deploying-symfony2-projects-on-shared-hosting-with-capifony/">deploy to shared hosting</a> with <a href="http://capifony.org/">Capifony</a>, a Symfony-based tool for use with <a href="https://github.com/capistrano/capistrano">Capistrano</a>.
</p>
<blockquote>
This article is meant to help you configure and deploy your projects developed with Symfony2 into a <a href="http://www.servergrove.com/sharedhosting">Shared Hosting</a> environment, so if you need to deploy using capifony on a VPS, please <a href="http://blog.servergrove.com/2010/07/12/symfony-git-capistrano-capifony/">read this article</a>.
</blockquote>
<p>
You'll need ssh access to the server to get things set up for the deployment as well as a local environment where you can install Ruby and Ruby Gems (their platform for the example is OSX). They help you get those installed and generate a key for use with the deployment. Once this key is copied over to the remote system, you can then set up the config to use the password-less connection and to deploy from either a local repository or a remote location (like github).
</p>]]></description>
      <pubDate>Thu, 08 Sep 2011 11:15:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Martin Sikora's Blog: Symfony 1.4 on shared webhosting]]></title>
      <guid>http://www.phpdeveloper.org/news/16521</guid>
      <link>http://www.phpdeveloper.org/news/16521</link>
      <description><![CDATA[<p>
On his blog <i>Martin Sikora</i> shares a solution that many a Symfony developer out there might find handy for <a href="http://www.martinsikora.com/symfony-1-4-on-shared-webhosting">running their application in a shared hosting environment</a>:
</p>
<blockquote>
Some time ago (actually when I was making this blog) I posted on <a href="http://www.stackoverflow.com/">stackoveflow.com</a> a question on <a href="http://stackoverflow.com/questions/2809778/symfony-on-virtual-host-document-root-problem">how to configure Symfony to run on shared webservers</a> where you can't change your website's document root. I solved it but forgot that I was asking and left it without any answer.
</blockquote>
<p>
The main problem is that the DOCUMENT_ROOT for the hosting service can't be changed by the users of the shared host. To solve this he modified his routing rules (sfPatternRouting class) and changed his .htaccess file to rewrite things over from just "/page" to "/web/page" instead. A simple solution, but it might be evasive if you've never configured it before.
</p>]]></description>
      <pubDate>Mon, 27 Jun 2011 11:07:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: How to install bbPress on shared hosting]]></title>
      <guid>http://www.phpdeveloper.org/news/15708</guid>
      <link>http://www.phpdeveloper.org/news/15708</link>
      <description><![CDATA[<p>
On the ServerGrove blog today there's <a href="http://blog.servergrove.com/2011/01/07/how-to-install-bbpress-on-shared-hosting/">a new tutorial</a> posted showing you, step by step, how to install the <a href="http://bbpress.org/">bbPress</a> software (from the folks that brought you <a href="http://wordpress.org">WordPress</a>.
</p>
<blockquote>
<a href="http://bbpress.org/">bbPress</a> is a forum software developed by the same folks who created WordPress. It's a lightweight bulletin board system that seems to be gaining traction lately. bbPress runs really well on our <a href="http://www.servergrove.com/sharedhosting">shared hosting plans</a> so we decided to put together a quick tutorial on how to install bbpress on our systems.
</blockquote>
<p>
Despite the description, the guide can be followed to install it just about everywhere thanks to the simple installation process bbPress uses. He links you to the latest download, gives you an example of what you can expect from the installer and talks about setting up the database. This is where is get specific, using their Plesk tool to set it up. This is only to set up the actual database, though - you can do this through any number of tools, including the command line.
</p>]]></description>
      <pubDate>Mon, 10 Jan 2011 08:42:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alvaro Videla's Blog: Reply to "Scala is Easier than PHP"]]></title>
      <guid>http://www.phpdeveloper.org/news/15467</guid>
      <link>http://www.phpdeveloper.org/news/15467</link>
      <description><![CDATA[<p>
<i>Alvaro Videla</i> has <a href="http://videlalvaro.github.com/2010/11/reply-to-scala-is-easier-than-php.html">written up a response</a> to <i>Wade Arnold</i>'s <a href="http://phpdeveloper.org/news/15453">Scala's easier than PHP</a> post and some of the points he doesn't agree with him on.
</p>
<blockquote>
Before going on with the points, let me state something: please avoid flame wars, all the Scala vs. PHP stuff, fanboyism and what not. This post is not about that. Regarding Wade Arnold I have to say that I fully respect him. While I don't know him personally, I know him for his work on AMFPHP, since it was a platform I used to work with before. 
</blockquote>
<p>
<i>Alvaro</i> talks about functional programming and some of the main points he had made about Erlang in a talk he had given - code reload, being ready for multi-core and no shared state between scripts. He talks about how these (really) apply to PHP.
</p>]]></description>
      <pubDate>Mon, 22 Nov 2010 08:29:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Zend Framework on a shared host]]></title>
      <guid>http://www.phpdeveloper.org/news/13808</guid>
      <link>http://www.phpdeveloper.org/news/13808</link>
      <description><![CDATA[<p>
In <a href="http://akrabat.com/zend-framework/zend-framework-on-a-shared-host/">this new post</a> to his blog <i>Rob Allen</i> looks at how to use a standard installation of the Zend Framework on a shared hosting environment.
</p>
<blockquote>
When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/. This doesn't look very professional, so we'd like to remove it. The easiest way, given a ZF project created using Zend_Tool.
</blockquote>
<p>
In the index.php file you'll need to define a constant and an .htaccess file to route everything back to that index. You'll need to be aware of this change when working with files and can check in the front controller for that constant to reset the base path if needed (code example included).
</p>]]></description>
      <pubDate>Fri, 08 Jan 2010 14:51:14 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Compiling PHP extensions with Zend Server]]></title>
      <guid>http://www.phpdeveloper.org/news/12431</guid>
      <link>http://www.phpdeveloper.org/news/12431</link>
      <description><![CDATA[<p>
On the Zend Developer Zone a <a href="http://devzone.zend.com/article/4512-Compiling-PHP-extensions-with-Zend-Server">new tutorial</a> has been posted showing how to compile PHP extensions to work with the <a href="http://www.zend.com/products/server/">Zend Server</a> web platform.
</p>
<blockquote>
To date, <a href="http://www.zend.com/products/server/">Zend Server</a> includes 77 PHP extensions that Zend considers essential or just very helpful for most PHP developers. Still, what if the one that your code uses is not among them? Or you wish to compile one of the extensions Zend Server is shipped with in a different way (against your own libraries or to support additional, less common features)? If this scenario sounds familiar to you, you may find this tutorial useful.
</blockquote>
<p>
You'll need to know a bit about compiling and some of the tools (like autoconf, automake, the gcc compiler, and libtool) before you get started. Two scenarios are described - one for installing and compiling the Newt extension (RedHat's Newt New Terminal library) and another slightly less automated for the Pspell extension.
</p>
<p>
Each of these examples make a shared module that can be included into the PHP installation via your php.ini.
</p>]]></description>
      <pubDate>Thu, 30 Apr 2009 08:46:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Wrapping C++ Classes in a PHP Extension]]></title>
      <guid>http://www.phpdeveloper.org/news/12393</guid>
      <link>http://www.phpdeveloper.org/news/12393</link>
      <description><![CDATA[<p>
On the Zend Developer Zone a <a href="http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension">new tutorial</a> has been posted looking at taking your pre-existing C++ functionality and wrapping it in a PHP extension to be used directly in your code.
</p>
<blockquote>
In this tutorial I am going to walk you through creating a PHP extension called "vehicles" which will expose a single class called "Car" (obviously in the real-world, your extensions will expose many classes, but I'm trying to keep things simple). The extension will be built for PHP 5. I am only going to give instructions for building the extension in a UNIX-like environment, although most of what I cover should apply to Windows extension development as well.
</blockquote>
<p>
The tutorial walks you through everything - how the file layout should look, making a build system, the contents of his files (the sample extension lets you do things to the Car like shift gears and brake) and how to combine the C++ code with the build process to create a shared module you can include right in your php.ini.
</p>]]></description>
      <pubDate>Thu, 23 Apr 2009 10:21:50 -0500</pubDate>
    </item>
  </channel>
</rss>

