<?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>João Morais &#187; PHP</title>
	<atom:link href="http://www.blog.joaomorais.com/category/development/programming-languages/php-programming-languages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.joaomorais.com</link>
	<description>Blog about web development, high technology, new projects and development tools.</description>
	<lastBuildDate>Sun, 21 Mar 2010 20:03:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use NTLM authentication with NuSOAP?</title>
		<link>http://www.blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/</link>
		<comments>http://www.blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 22:46:22 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Papers]]></category>
		<category><![CDATA[SugarCRM]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[NTLM]]></category>
		<category><![CDATA[NuSOAP]]></category>
		<category><![CDATA[SOAP]]></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 isn&#8217;t [...]]]></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://www.blog.joaomorais.com/how-to-use-ntlm-authentication-with-nusoap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Will India become the number one source of PHP Developers?</title>
		<link>http://www.blog.joaomorais.com/will-india-become-the-number-one-source-of-php-developers/</link>
		<comments>http://www.blog.joaomorais.com/will-india-become-the-number-one-source-of-php-developers/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 08:38:58 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Interviews]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[Kadam]]></category>
		<category><![CDATA[Lemos]]></category>
		<category><![CDATA[Manuel]]></category>
		<category><![CDATA[PHPCamp]]></category>
		<category><![CDATA[PHPClasses]]></category>
		<category><![CDATA[Portugal]]></category>
		<category><![CDATA[Sandeep]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[Summer]]></category>

		<guid isPermaLink="false">http://blog.joaomorais.com/?p=335</guid>
		<description><![CDATA[
Manuel Lemos made an interview with Sandeep Kadam, a leader of PHP community in India which is also involved in PHPCamp organization, an event which is focused on PHP based web applications development targetted to all PHP enthusiasts and starters.
&#8220;The number of Indian PHP developers has been growing at a large pace in the last [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-341" title="PHP" src="http://blog.joaomorais.com/wp-content/uploads/php.png" alt="PHP" width="48" height="48" /></p>
<p><a title="PHPClasses.org Blog" href="http://www.phpclasses.org/blog/">Manuel Lemos</a> made an interview with Sandeep Kadam, a leader of <a title="PHP Official Website" href="http://www.php.net/">PHP</a> community in India which is also involved in <a title="PHPCamp - elePHPant arrives!" href="http://phpcamp.org/">PHPCamp</a> organization, an event which is focused on <a title="PHP Official Website" href="http://www.php.net">PHP</a> based web applications development targetted to all <a title="PHP Official Website" href="http://www.php.net/">PHP</a> enthusiasts and starters.</p>
<p><em>&#8220;</em><em>The number of Indian <a title="PHP Official Website" href="http://www.php.net/">PHP</a> developers has been growing at a large pace in the last few years, when compared to other countries. A few years ago, India was just one of the top ten countries with more <a title="PHP Official Website" href="http://www.php.net/">PHP</a> developers. Now India is number two and is almost surpassing United States, which is still number one.&#8221;</em></p>
<p><span id="more-335"></span>This <a title="India will become number 1 source of PHP Developers soon" href="http://www.phpclasses.org/blog/post/99-India-will-become-number-1-source-of-PHP-developers-soon.html">article</a> presents some numbers based on <a title="PHPClasses" href="http://www.phpclasses.org/">PHPClasses</a> statistics and a reflection about why this growth happened just in the latest years, as well what it means for the<a title="PHP Official Website" href="http://www.php.net/"> PHP</a> world.</p>
<p>After reading the full <a title="India will become number 1 source of PHP Developers soon" href="http://www.phpclasses.org/blog/post/99-India-will-become-number-1-source-of-PHP-developers-soon.html">article</a>, I can&#8217;t help but wonder why doesn&#8217;t Portugal appear on presented statistics since there&#8217;s a huge community around <a title="PHP Official Website" href="http://www.php.net/">PHP</a>, there&#8217;s a couple of new job offers every single week and there&#8217;s also activities like <a title="PHP Summer School" href="http://www.phpsummerschool.org/">PHP Summer School</a> (3rd edition currently running) which seems to have great acceptance by the audience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.joaomorais.com/will-india-become-the-number-one-source-of-php-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF-8 + PHP = Headache?</title>
		<link>http://www.blog.joaomorais.com/utf-8-php-headache/</link>
		<comments>http://www.blog.joaomorais.com/utf-8-php-headache/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 08:55:43 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<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 with [...]]]></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://www.blog.joaomorais.com/utf-8-php-headache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go PHP5!</title>
		<link>http://www.blog.joaomorais.com/go-php5/</link>
		<comments>http://www.blog.joaomorais.com/go-php5/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 11:15:52 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></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 PHP [...]]]></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://www.blog.joaomorais.com/go-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla! 1.5.6 Released</title>
		<link>http://www.blog.joaomorais.com/joomla-1-5-6-released/</link>
		<comments>http://www.blog.joaomorais.com/joomla-1-5-6-released/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 11:02:41 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Joomla!]]></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 owned too [...]]]></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://www.blog.joaomorais.com/joomla-1-5-6-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla!</title>
		<link>http://www.blog.joaomorais.com/joomla/</link>
		<comments>http://www.blog.joaomorais.com/joomla/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 15:56:46 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Joomla!]]></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 the software [...]]]></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://www.blog.joaomorais.com/joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony Framework</title>
		<link>http://www.blog.joaomorais.com/symfony-framework/</link>
		<comments>http://www.blog.joaomorais.com/symfony-framework/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 10:48:33 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[CRUD]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[MVC]]></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 support makes [...]]]></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://www.blog.joaomorais.com/symfony-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
