<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blonko! &#187; php</title>
	<atom:link href="http://www.wonko.be/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wonko.be</link>
	<description>Blog + Wonko = Blonko!</description>
	<lastBuildDate>Mon, 16 Aug 2010 18:03:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>sqlite version 2 in PHP on OS X</title>
		<link>http://www.wonko.be/2008/01/02/sqlite-version-2-in-php-on-os-x</link>
		<comments>http://www.wonko.be/2008/01/02/sqlite-version-2-in-php-on-os-x#comments</comments>
		<pubDate>Wed, 02 Jan 2008 11:47:39 +0000</pubDate>
		<dc:creator>blonko</dc:creator>
				<category><![CDATA[blonko]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.wonko.be/2008/01/02/sqlite-version-2-in-php-on-os-x/</guid>
		<description><![CDATA[While working some more on a symfony project, I wanted to migrate the setup on the testing servers to my laptop, so I could continue working when I wasn&#8217;t at the office. The project used a SQLite database, as the data stored is minimal (some hostnames and logins). On the testing servers, we had no [...]]]></description>
			<content:encoded><![CDATA[<p>While working some more on a <a href="http://www.symfony-project.org">symfony</a> project, I wanted to migrate the setup on the testing servers to my laptop, so I could continue working when I wasn&#8217;t at the office.</p>
<p>The project used a SQLite database, as the data stored is minimal (some hostnames and logins). On the testing servers, we had no problems using and working with these, and all needed parts happily talked to the datafiles. Alas, when running it on my Macbook Pro running Leopard, I got some errors from symfony, complaining the datafile was encrypted or no real sqlite datafile.</p>
<p>A quick check gave no real indication of the problem; the datafile appeared to be correct and worked using the CLI tools:</p>
<pre>
bernard:tmp bernard$ sqlite3 project.sqlite
SQLite version 3.4.0
Enter ".help" for instructions
sqlite> .tables
ftp_hosts_and_logins       sf_guard_remember_key
ftp_path                   sf_guard_user
sf_guard_group             sf_guard_user_group
sf_guard_group_permission  sf_guard_user_permission
sf_guard_permission
sqlite>
</pre>
<p>I even dumped the data to a text-file, and re-imported it using the cli-tools. Nothing helped, symfony (well, php) could not read the file. After a while, the problem was found. On Leopard, all the SQLite version 3 tools are included on the system, but in the PHP which is shipped with Leopard, the linked in library is version 2. </p>
<p><img src='http://www.wonko.be/wp-content/uploads/2008/01/sqlite2.png' alt='sqlite2.png' /></p>
<p>This would be no problem, but it seems Leopard ships without the SQLite version 2 cli tools, so there was no obvious way to convert this datafile to version 2 (or I should use the tools on the testing server, but then I had no way of using it from within my shell, which was no option).</p>
<p>This is just plain stupid. All libraries and tools are version 3, but the the linked library for PHP is version 2. Talk about forgetting something. As propel can&#8217;t work with PDO (another db layer in php), I either had to replace my PHP on Leopard with a custom-made one, or try to install the sqlite 2 tools. Neither seemed a good idea, I hate to replace my defaults with custom stuff.</p>
<p>It resulted in converting the SQLite database to MySQL and changing my symfony project to use the MySQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wonko.be/2008/01/02/sqlite-version-2-in-php-on-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>symfony, sfGuardPlugin and security.yml</title>
		<link>http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml</link>
		<comments>http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml#comments</comments>
		<pubDate>Wed, 12 Dec 2007 16:43:21 +0000</pubDate>
		<dc:creator>blonko</dc:creator>
				<category><![CDATA[blonko]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sfguard]]></category>
		<category><![CDATA[sfguardplugin]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml/</guid>
		<description><![CDATA[I&#8217;ve been playing with symfony lately, and installed the sfGuard plugin to get a better control over the groups and the users. After the usual problems, for which the solutions are found easily using Google, one issue remained unsolved for a while, while the solution was simple and straightforward: Each module in your application can [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.wonko.be/wp-content/uploads/2007/12/picture-7.png' title='User management in sfGuardPlugin'><img src='http://www.wonko.be/wp-content/uploads/2007/12/picture-7.thumbnail.png' alt='User management in sfGuardPlugin' class="left" /></a>I&#8217;ve been playing with <a href="http://www.symfony-project.org/">symfony</a> lately, and installed <a href="http://trac.symfony-project.com/wiki/sfGuardPlugin">the sfGuard plugin</a> to get a better control over the groups and the users. After the usual problems, for which the solutions are found easily using Google, one issue remained unsolved for a while, while the solution was simple and straightforward: </p>
<p>Each module in your application can be protected through the use of the security.yml files. In the top-level security.yml file, I included the following (it was a backend application, so access should be restricted, when in doubt):</p>

<div class="wp_syntax"><div class="code"><pre class="yml" style="font-family:monospace;">default:
  is_secure: on</pre></div></div>

<p>Now, if you want to protect a module, apparently, it doesn&#8217;t work to include this in your main config:</p>

<div class="wp_syntax"><div class="code"><pre class="yaml" style="font-family:monospace;">default:
  is_secure: on
&nbsp;
module1:
  credentials: admin</pre></div></div>

<p>However, when including this in your module1/config/security.yml file, it works (the &#8216;all&#8217; concerns the actions within this module):</p>

<div class="wp_syntax"><div class="code"><pre class="yaml" style="font-family:monospace;">all:
    is_secure: on
    credentials: admin</pre></div></div>

<p>I assume the &#8216;is_secure: on&#8217; might be omitted, as the default is set to on. It somehow bothers me to see that it is not possible to include this in the application-level security file, covering all the modules actions at once.</p>
<p>Four important notes when you encounter problems:<img src='http://www.wonko.be/wp-content/uploads/2007/12/picture-6.png' alt='picture-6.png' class="right" /></p>
<ul>
<li>The names listed as the credentials are the names you&#8217;ve given to your permissions! Seems logical, but try not to change them to much, as you might break access to certain parts of your site.</li>
<li>The permissions assigned to the groups are granted to the users, and the permissions listed below the users are added when checked.</li>
<li>When you change your own credentials, make sure to log out and log in again!</li>
<li>And finally, control the access to the plugins sfGuardUsers, sfGuardGroups, sfGuardPermissions the same way as other modules, by changing the security.yml files in the plugins/sfGuardPlugin/modules/&#8230;/config/security.yml files. Don&#8217;t change the access to the sfGuardAuth module, as it needs to be accessible by anyone to be able to login (see picture).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wonko.be/2007/12/12/symfony-sfguardplugin-and-securityyml/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>T_PAAMAYIM_NEKUDOTAYIM!</title>
		<link>http://www.wonko.be/2007/12/03/t_paamayim_nekudotayim</link>
		<comments>http://www.wonko.be/2007/12/03/t_paamayim_nekudotayim#comments</comments>
		<pubDate>Mon, 03 Dec 2007 17:40:23 +0000</pubDate>
		<dc:creator>blonko</dc:creator>
				<category><![CDATA[blonko]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.wonko.be/2007/12/03/t_paamayim_nekudotayim/</guid>
		<description><![CDATA[Vandaag kreeg ik tijdens het knoeien met een php-scriptje de volgende foutmelding: PHP Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /Users/bernard/Projects/someclient/somedir/somescript.php on line 100 Wtf? Wat bleek, ik had een paragraafteken gezet ipv een dollarteken (vraag me niet waarom, ze zitten metersver uiteen op m&#8217;n keyboard). Maar wat betekent die rimram nu? Blijkbaar [...]]]></description>
			<content:encoded><![CDATA[<p>Vandaag kreeg ik tijdens het knoeien met een php-scriptje de volgende foutmelding:</p>
<pre>
PHP Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in
/Users/bernard/Projects/someclient/somedir/somescript.php on line 100
</pre>
<p><em>Wtf?</em></p>
<p>Wat bleek, ik had een paragraafteken gezet ipv een dollarteken (vraag me niet waarom, ze zitten metersver uiteen op m&#8217;n keyboard).</p>
<p>Maar wat betekent die rimram nu? Blijkbaar is het hebreews (uitgeschreven in het engels natuurlijk), en betekent het iets als &#8220;dubbele punt&#8221; of &#8220;dubbelpunt&#8221;. Het is een gevolg van het feit dat de makers van PHP uit Israël afkomstig zijn.</p>
<p>We zien ook op de <a href="http://www.php.net/manual/en/tokens.php">PHP list of parser tokens</a> het volgende:</p>
<pre>
T_PAAMAYIM_NEKUDOTAYIM	::	::. Also defined as T_DOUBLE_COLON.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.wonko.be/2007/12/03/t_paamayim_nekudotayim/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!--f0c25b539901624b460e129d15264305-->
