<?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>blog.joaomorais.com &#187; PHP</title>
	<atom:link href="http://blog.joaomorais.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joaomorais.com</link>
	<description>Blog about software development, personal projects and development tools.</description>
	<lastBuildDate>Mon, 10 Apr 2017 02:26:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>PHP Summer School &#8211; Advanced Topics</title>
		<link>http://blog.joaomorais.com/php-summer-school-advanced-topics/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-summer-school-advanced-topics</link>
		<comments>http://blog.joaomorais.com/php-summer-school-advanced-topics/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 10:11:38 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[DRI]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.blog.joaomorais.com/?p=827</guid>
		<description><![CDATA[This year I&#8217;m attending the event!]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;">This year I&#8217;m attending the event!</p>
<p style="text-align: center;"><a href="http://www.phpsummerschool.org"><img class="aligncenter size-medium wp-image-872" title="PHP Summer School" src="http://blog.joaomorais.com/wp-content/uploads/2010/09/phpsummerschool-300x225.png" alt="PHP Summer School" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/php-summer-school-advanced-topics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use NTLM authentication with NuSOAP?</title>
		<link>http://blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-ntlm-authentication-with-nusoap</link>
		<comments>http://blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 23:46:22 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[NTLM]]></category>
		<category><![CDATA[NuSOAP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[SugarCRM]]></category>
		<category><![CDATA[Webservices]]></category>

		<guid isPermaLink="false">http://blog.joaomorais.com/?p=573</guid>
		<description><![CDATA[For a couple of weeks I&#8217;ve been implementing Webservices to feed resources on a SugarCRM project that I&#8217;m working on. As you may know SugarCRM provides NuSOAP, which is a SOAP Toolkit for PHP that brings some extra functionalities to SOAP implementation provided by PHP. Today I had to use NTLM authentication method, unfortunately it [...]]]></description>
				<content:encoded><![CDATA[<p>For a couple of weeks I&#8217;ve been implementing <a title="Webservices on Wikipedia" href="http://en.wikipedia.org/wiki/Webservices">Webservices</a> to feed resources on a <a title="SugarCRM - Commercial Open Source CRM" href="http://www.sugarcrm.com">SugarCRM</a> project that I&#8217;m working on. As you may know <a title="SugarCRM - Commercial Open Source CRM" href="http://www.sugarcrm.com/">SugarCRM</a> provides <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a>, which is a <a title="SOAP on Wikipedia" href="http://en.wikipedia.org/wiki/SOAP">SOAP</a> Toolkit for PHP that brings some extra functionalities to <a title="PHP Soap Implementation" href="http://www.php.net/soap">SOAP implementation</a> provided by PHP.</p>
<p>Today I had to use NTLM authentication method, unfortunately it isn&#8217;t supported by <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a> yet, but I&#8217;ve found that if you combine <a title="Client URL Request Library" href="http://www.php.net/curl">cURL</a> with <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a> you can get through without a problem.</p>
<p><span id="more-573"></span>So here is the solution I came up with:</p>
<p>First of all I&#8217;ve upgraded <a title="NuSOAP - SOAP Toolkit for PHP" href="http://sourceforge.net/projects/nusoap/">NuSOAP</a> to it&#8217;s latest version which is 0.7.3 (the one provided by <a title="SugarCRM - Commercial Open Source CRM" href="http://www.sugarcrm.com/">SugarCRM</a> didn&#8217;t supported <a title="Client URL Request Library" href="http://www.php.net/curl">cURL</a> yet), then I wrote something similar to the code below.</p>
<pre class="brush:php">&lt;?php

$wsdl = 'http://project/file.php?wsdl';

$client = new nusoap_client($wsdl, true);
$client-&gt;setCredentials('', '', 'ntlm');
$client-&gt;setUseCurl(true);
$client-&gt;useHTTPPersistentConnection();
$client-&gt;setCurlOption(CURLOPT_USERPWD, 'auth_username:auth_password');

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UTF-8 + PHP = Headache?</title>
		<link>http://blog.joaomorais.com/utf-8-php-headache/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=utf-8-php-headache</link>
		<comments>http://blog.joaomorais.com/utf-8-php-headache/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 09:55:43 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[UTF-8]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=72</guid>
		<description><![CDATA[As some of you know PHP doesn&#8217;t handle UTF-8 by default and that could lead to a terrible headache, at least till version 6 cames out. Today I&#8217;ve spent some time looking for good articles on this subject. I&#8217;ve found two great articles that cover a lot of topics including strategies to use while working [...]]]></description>
				<content:encoded><![CDATA[<p>As some of you know <a title="PHP Official Web Site" href="http://www.php.net">PHP</a> doesn&#8217;t handle <a title="UTF-8 and Unicode Standards" href="http://www.utf-8.com/">UTF-8</a> by default and that could lead to a terrible headache, at least till <a title="PHP 6 and What to Expect" href="http://it.slashdot.org/comments.pl?sid=180127&amp;cid=14914160">version 6</a> cames out.</p>
<p>Today I&#8217;ve spent some time looking for good articles on this subject. I&#8217;ve found two great articles that cover a lot of topics including strategies to use while working with <a title="MySQL Official Web Site" href="http://www.mysql.com">MySQL</a>:</p>
<p><a title="Handling UTF-8 with PHP" href="http://www.phpwact.org/php/i18n/utf-8">Handling UTF-8 with PHP</a><br />
<a title="Scripters UTF-8 Survival Guide" href="http://www.sitepoint.com/blogs/2006/08/09/scripters-utf-8-survival-guide-slides/">Scripters UTF-8 Survival Guide</a></p>
<p>You can download the second one in PDF format and read it later.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/utf-8-php-headache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go PHP5!</title>
		<link>http://blog.joaomorais.com/go-php5/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=go-php5</link>
		<comments>http://blog.joaomorais.com/go-php5/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 12:15:52 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[PHPMyAdmin]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=57</guid>
		<description><![CDATA[A couple of weeks ago I&#8217;ve found this project, it&#8217;s name is GoPHP5 and it&#8217;s main goal is to speed up the transition of old PHP applications to the newer versions. I totally agree with this project ideas and support them 100%, in my opinion it doesn&#8217;t make sense to keep developing applications using old [...]]]></description>
				<content:encoded><![CDATA[<p>A couple of weeks ago I&#8217;ve found this project, it&#8217;s name is <a title="HoPJP6.org - helping speed the transition to PHP 5.2" href="http://gophp5.org/">GoPHP5</a> and it&#8217;s main goal is to speed up the transition of old PHP applications to the newer versions.</p>
<p>I totally agree with this project ideas and support them 100%, in my opinion it doesn&#8217;t make sense to keep developing applications using old PHP versions.</p>
<p>At the moment there are already a couple of big projects associated such as <a href="http://drupal.org/gophp5">Drupal</a>, <a href="http://blog.cmsmadesimple.org/2007/07/08/gophp5/">CMS Made Simple</a>, <a href="http://www.phpmyadmin.net/gophp5">phpMyAdmin</a> and others.</p>
<p>If you&#8217;re going to develop a new project or develop new features to an existing one, take a look at the website, spend some time reading and <a title="HoPJP6.org - helping speed the transition to PHP 5.2" href="http://gophp5.org/">GoPHP5</a>.</p>
<p>At the moment I&#8217;m only working with PHP5 and I&#8217;ve got to say, the new features are great.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/go-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla! 1.5.6 Released</title>
		<link>http://blog.joaomorais.com/joomla-1-5-6-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joomla-1-5-6-released</link>
		<comments>http://blog.joaomorais.com/joomla-1-5-6-released/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 12:02:41 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=243</guid>
		<description><![CDATA[Till a couple of days now I was using Joomla! 1.5.5 but yesterday a new release came out. This new release is a security release made to solve a high level security issue, then it&#8217;s recommended to upgrade immediately. Some websites are already being owned because of this security flaw, do not risk to get [...]]]></description>
				<content:encoded><![CDATA[<p>Till a couple of days now I was using <a title="Joomla!" href="http://www.joomla.org/">Joomla!</a> 1.5.5 but yesterday a new release came out.</p>
<p>This new release is a security release made to solve a high level security issue, then it&#8217;s recommended to upgrade immediately.</p>
<p>Some websites are already being owned because of this security flaw, do not risk to get owned too and update your website software as soon as possible.</p>
<p>If you need help read the migration/upgrade instructions in <a title="Joomla! 1.5.6 Released" href="http://www.joomla.org/announcements/release-news/5199-joomla-156-released.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/joomla-1-5-6-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla!</title>
		<link>http://blog.joaomorais.com/joomla/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joomla</link>
		<comments>http://blog.joaomorais.com/joomla/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 16:56:46 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=54</guid>
		<description><![CDATA[Last week I&#8217;ve wrote in here that I was looking for a CMS with a couple of specs. After a lot of reading I&#8217;ve decided to bet on Joomla!, although it has a couple of bad reviews it fulfills my needs (I hope). At the moment I&#8217;m running Joomla! 1.5.5 stable. Yesterday after I installed [...]]]></description>
				<content:encoded><![CDATA[<p>Last week I&#8217;ve wrote in <a title="Content Management Systems (CMS)" href="http://blog.joaomorais.com/content-management-system-cms/">here</a> that I was looking for a CMS with a couple of specs. After a lot of reading I&#8217;ve decided to bet on <a title="Joomla!" href="http://joomla.org/">Joomla!</a>, although it has a couple of bad reviews it fulfills my needs (I hope).</p>
<p>At the moment I&#8217;m running <a title="Joomla!" href="http://joomla.org/">Joomla!</a> 1.5.5 stable.</p>
<p>Yesterday after I installed the software I&#8217;ve looked for some tutorials that would guide me through the process of developing a component for this version of <a title="Joomla!" href="http://joomla.org/">Joomla!</a>.</p>
<p>It would be expectable to have some great <a title="Joomla! Tutorials" href="http://developer.joomla.org/tutorials.html">tutorials</a> in <a title="Joomla! Developer Network" href="http://developer.joomla.org/">Joomla! Developer Network</a> but to be honest I&#8217;ve got to say that the ones that are available are a bit poor, and most of Documentation is written for the older versions.</p>
<p>After a lot of searches I&#8217;ve found these <a title="Create MVC component for Joomla! 1.5 - Hello World" href="http://www.vojtechovsky.net/joomla/component-helloworld-2-create-tutorial-guide-en.html">tutorials</a> and they are great, at least for helping me out in these first steps.</p>
<p><span id="more-54"></span>Another thing that I&#8217;ve noticed was that there are a lot of people with problems related with the installation of extensions and a lot of discussions about this in <a title="Joomla!" href="http://joomla.org/">Joomla!</a> forums, it seems that there isn&#8217;t a final solution for this kind of problem.</p>
<p>One popular solution (and from what I&#8217;ve read it does not solve this problem for everyone) is to change directory permissions to <em>777</em>. In my opinion that&#8217;s not the best way to solve this problem, because if you have a shared host, you&#8217;ll probably get into troubles soon or later since other users will have permissions to mess with your files.</p>
<p>Another thing you can do, if you have enough privileges, is to change the user/group in your <em>httpd.conf</em> that way when your script creates any files/directories, they are created with the same user/group as your account.</p>
<p>I&#8217;ve used the second option, because at the moment I&#8217;m working locally, then I have root privileges. In the future I hope to find a better solution otherwise I&#8217;ll stick to this one, since I&#8217;ll also have root privileges in the production server too.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony Framework</title>
		<link>http://blog.joaomorais.com/symfony-framework/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=symfony-framework</link>
		<comments>http://blog.joaomorais.com/symfony-framework/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 11:48:33 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[CRUD]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/symfony-framework/</guid>
		<description><![CDATA[A couple of weeks ago I was looking for a PHP framework after a few searches I found one that fits my needs, and that is Symfony framework! Some of the features are: Built on top of PHP 5, for me that&#8217;s a plus since I&#8217;m only working with PHP 5 at the moment. MVC [...]]]></description>
				<content:encoded><![CDATA[<p>A couple of weeks ago I was looking for a PHP framework after a few searches I found one that fits my needs, and that is <a title="Symfony Project" href="http://www.symfony-project.org/">Symfony </a> <a title="Framework" href="http://en.wikipedia.org/wiki/Software_framework">framework</a>!</p>
<p>Some of the features are:</p>
<ul>
<li>Built on top of PHP 5, for me that&#8217;s a plus since I&#8217;m only working with PHP 5 at the moment.</li>
<li>MVC support makes application building faster and easier.</li>
<li>CRUD generator will reduce code repetitions and useless boring time spent on building this tasks.</li>
<li>Lots of support, when you start learning something new, all the support available you can get is a plus.</li>
<li>And a lot of other features, such as: Ajax support, smart URL&#8217;s, cache management, multilingualism and l18N support, scaffolding, among others. You can check the features list at <a title="Symfony Project" href="http://www.symfony-project.org/">Symfony Project</a> website.</li>
</ul>
<p>The only thing I think it&#8217;s a bit hard, is the learning curve. What I mean is, you really have to &#8220;waste&#8221; some time to get to know how the application works, but I think in the end it will compensate.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/symfony-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
