<?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>Khawaib Ahmed&#039;s Blog</title>
	<atom:link href="http://www.khawaib.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.khawaib.co.uk/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 18 Aug 2010 11:57:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Retrieve Component parameters in plugin</title>
		<link>http://www.khawaib.co.uk/blog/?p=231</link>
		<comments>http://www.khawaib.co.uk/blog/?p=231#comments</comments>
		<pubDate>Wed, 18 Aug 2010 11:55:31 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Joomla! 1.5]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=231</guid>
		<description><![CDATA[Using following code component parameters can be retrieved in plugins and modules.
If component has parameters in its Global Configurations use following:

$params = &#38;JComponentHelper::getParams( 'component_name' );
$parammeter = $usersConfig-&#62;get( 'parameter_name' );

Use following if component have configurations inside component page:

$params = $mainframe-&#62;getParams('component_name');
parammeter  = $params-&#62;get('parameter_name');

]]></description>
			<content:encoded><![CDATA[<p>Using following code component parameters can be retrieved in plugins and modules.</p>
<p>If component has parameters in its Global Configurations use following:</p>
<pre class="brush: php;">
$params = &amp;JComponentHelper::getParams( 'component_name' );
$parammeter = $usersConfig-&gt;get( 'parameter_name' );
</pre>
<p>Use following if component have configurations inside component page:</p>
<pre class="brush: php;">
$params = $mainframe-&gt;getParams('component_name');
parammeter  = $params-&gt;get('parameter_name');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=231</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Permissions for Joomla using Plesk and Virtuozzo</title>
		<link>http://www.khawaib.co.uk/blog/?p=229</link>
		<comments>http://www.khawaib.co.uk/blog/?p=229#comments</comments>
		<pubDate>Sun, 15 Aug 2010 19:09:45 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Joomla! 1.0]]></category>
		<category><![CDATA[Joomla! 1.5]]></category>
		<category><![CDATA[Plesk/Virtuozzo]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[httpdocs]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[umask]]></category>
		<category><![CDATA[vhosts]]></category>
		<category><![CDATA[Virtuozzo]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=229</guid>
		<description><![CDATA[Change the umask in ‘/etc/proftpd.conf’ from ’022′ to ’002′.
Then, update the directory permissions by running the following at the command line:

cd /var/www/vhosts/[domain.com]
chown -R [username]:psacln httpdocs
chmod -R g+w httpdocs
find httpdocs -type d -exec chmod g+s {} \;

Add the ‘apache’ user to the ‘psacln’ group by editing ‘/etc/group’.

psacln:x:2524:apache

]]></description>
			<content:encoded><![CDATA[<p>Change the umask in ‘/etc/proftpd.conf’ from ’022′ to ’002′.</p>
<p>Then, update the directory permissions by running the following at the command line:</p>
<pre class="brush: php;">
cd /var/www/vhosts/[domain.com]
chown -R [username]:psacln httpdocs
chmod -R g+w httpdocs
find httpdocs -type d -exec chmod g+s {} \;
</pre>
<p>Add the ‘apache’ user to the ‘psacln’ group by editing ‘/etc/group’.</p>
<pre class="brush: php;">
psacln:x:2524:apache
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=229</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling a plugin from a Component or another Plugin</title>
		<link>http://www.khawaib.co.uk/blog/?p=217</link>
		<comments>http://www.khawaib.co.uk/blog/?p=217#comments</comments>
		<pubDate>Tue, 03 Aug 2010 23:49:52 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Joomla! 1.5]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=217</guid>
		<description><![CDATA[You can use a plugins functions from another plugin or component using following codes.
These are for Joomla 1.5

$Plugin =&#38; JPluginHelper::getPlugin('system', 'saleslogix');
$dispatcher =&#38; JDispatcher::getInstance();
$plg = array(&#34;type&#34;=&#62;&#34;system&#34;,&#34;name&#34;=&#62;&#34;saleslogix&#34;,&#34;params&#34;=&#62;$Plugin-&#62;params);
$saleslogixPlg = new plgSystemSaleslogix( $dispatcher, $plg );
//$resultHere = $saleslogixPlg-&#62;myFunction();

OR

JPluginHelper::importPlugin('system');
$app = &#38;JFactory::getApplication();
$app-&#62;triggerEvent('onAfterInitialise');

]]></description>
			<content:encoded><![CDATA[<p>You can use a plugins functions from another plugin or component using following codes.<br />
These are for Joomla 1.5</p>
<pre class="brush: php;">
$Plugin =&amp; JPluginHelper::getPlugin('system', 'saleslogix');
$dispatcher =&amp; JDispatcher::getInstance();
$plg = array(&quot;type&quot;=&gt;&quot;system&quot;,&quot;name&quot;=&gt;&quot;saleslogix&quot;,&quot;params&quot;=&gt;$Plugin-&gt;params);
$saleslogixPlg = new plgSystemSaleslogix( $dispatcher, $plg );
//$resultHere = $saleslogixPlg-&gt;myFunction();
</pre>
<p>OR</p>
<pre class="brush: php;">
JPluginHelper::importPlugin('system');
$app = &amp;JFactory::getApplication();
$app-&gt;triggerEvent('onAfterInitialise');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=217</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>www or no www in urls</title>
		<link>http://www.khawaib.co.uk/blog/?p=213</link>
		<comments>http://www.khawaib.co.uk/blog/?p=213#comments</comments>
		<pubDate>Sun, 01 Aug 2010 18:17:53 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Joomla! 1.0]]></category>
		<category><![CDATA[Joomla! 1.5]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod rewrite]]></category>
		<category><![CDATA[no www]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=213</guid>
		<description><![CDATA[You can enter your website urls with a www or with no www. Which is better I leave for you to google and find out yourself. Using both is not a good idea as search engines and Facebook will not treat them same and will cause problems.
Solution is to force one of them to be [...]]]></description>
			<content:encoded><![CDATA[<p>You can enter your website urls with a www or with no www. Which is better I leave for you to google and find out yourself. Using both is not a good idea as search engines and Facebook will not treat them same and will cause problems.</p>
<p>Solution is to force one of them to be used and not both. So if a users enters http://www.youtsite.com gets to http://yoursite.com and vice versa.</p>
<p><strong>Solutions 1: Using Mod Rewrite</strong><br />
Following code should be placed in htaccess file in root directory of your website.</p>
<p>If your want to http://www.yoursite.com use following code:</p>
<pre class="brush: php;">
&lt;IfModule mod_rewrite.c&gt;
   Options +FollowSymLinks
   Options +Indexes
   RewriteEngine On
   RewriteBase /
   RewriteCond %{HTTP_HOST} ^domain\.com$
   RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
&lt;/IfModule&gt;
</pre>
<p>If your want to http://yoursite.com use following code:</p>
<pre class="brush: php;">
&lt;IfModule mod_rewrite.c&gt;
   Options +FollowSymLinks
   Options +Indexes
   RewriteEngine On
   RewriteBase /
   RewriteCond %{HTTP_HOST} ^www\.domain\.com$
   RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
&lt;/IfModule&gt;
</pre>
<p><strong>Joomla website users:</strong><br />
You can use following free plugin from JED<br />
http://extensions.joomla.org/extensions/site-management/url-redirection/10527</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=213</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create New user in Joomla</title>
		<link>http://www.khawaib.co.uk/blog/?p=210</link>
		<comments>http://www.khawaib.co.uk/blog/?p=210#comments</comments>
		<pubDate>Fri, 30 Jul 2010 21:23:33 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Joomla! 1.5]]></category>
		<category><![CDATA[joomlauser]]></category>
		<category><![CDATA[jpath]]></category>
		<category><![CDATA[jrequest]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[new user]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[registration]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=210</guid>
		<description><![CDATA[
&#60;?php
function CreateNewUser($name, $username, $email, $password, $registerDate = NULL, $usertype = 'Registered', $block = '0', $sendEmail = '1', $gid = '18') {
        global $db;

        $db = &#38; JFactory::getDBO();
        jimport('joomla.user.helper');

       [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;?php
function CreateNewUser($name, $username, $email, $password, $registerDate = NULL, $usertype = 'Registered', $block = '0', $sendEmail = '1', $gid = '18') {
        global $db;

        $db = &amp; JFactory::getDBO();
        jimport('joomla.user.helper');

        //Make the joomla password hash
        $salt = JUserHelper::genRandomPassword(32);
        $crypt = JUserHelper::getCryptedPassword($password, $salt);
        $joomlapassword = $crypt . ':' . $salt;

        //Table #__users
        //Informations about the user
        $user = new stdClass;
        $user-&gt;id = NULL;
        $user-&gt;name = $name;
        $user-&gt;username = $username;
        $user-&gt;email = $email;
        $user-&gt;password = $joomlapassword;
        $user-&gt;registerDate = registerDate;
        $user-&gt;usertype = $usertype;
        $user-&gt;block = $block;
        $user-&gt;sendEmail = $sendEmail;
        $user-&gt;gid = $gid;

        if (!$db-&gt;insertObject('#__users', $user, 'id')) {
            echo $db-&gt;stderr();
            return false;
        }

        //Table #__core_acl_aro
        //Discover what is the last value of value in #__core_acl_aro
        $query = &quot;SELECT value FROM #__core_acl_aro ORDER BY id DESC LIMIT 1&quot;;
        $db-&gt;setQuery($query);
        $coreaclarolastvalue = $db-&gt;loadResult();

        $coreaclaro = new stdClass;
        $coreaclaro-&gt;id = NULL;
        $coreaclaro-&gt;section_value = 'users';
        $coreaclaro-&gt;value = $coreaclarolastvalue + 1;
        $coreaclaro-&gt;order_value = NULL;
        $coreaclaro-&gt;name = $name;
        $coreaclaro-&gt;hidden = NULL;

        if (!$db-&gt;insertObject('#__core_acl_aro', $coreaclaro, 'id')) {
            echo $db-&gt;stderr();
            return false;
        }

        //Table #__core_acl_groups_aro_map
        $coreaclmap = new stdClass;
        $coreaclmap-&gt;group_id = $gid;
        $coreaclmap-&gt;section_value = NULL;
        $coreaclmap-&gt;aro_id = $coreaclaro-&gt;id; // maybe just $user-&gt;id ?

        if (!$db-&gt;insertObject('#__core_acl_groups_aro_map', $coreaclmap)) {
            echo $db-&gt;stderr();
            return false;
        }

        $CreateNewUserInfo = array($user-&gt;id, $user-&gt;name, $user-&gt;username, $user-&gt;email);
        return $CreateNewUserInfo;
}
</pre>
<p>Implementation</p>
<pre class="brush: php;">

//This exemple will take data from one post, for example
$username = JRequest::getVar('username');
$name = JRequest::getvar('name');
$email = JRequest::getVar('email');
$password = JRequest::getVar('password');

//This code will call your funcion, then register with your data
$NewUserInfo = CreateNewUser($name, $username, $email, $password, $registerDate);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=210</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create a Facebook Page</title>
		<link>http://www.khawaib.co.uk/blog/?p=192</link>
		<comments>http://www.khawaib.co.uk/blog/?p=192#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:26:39 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=192</guid>
		<description><![CDATA[How to access Faceboo Pages?
You can find Facebook Pages in left column on your Facebook home page when you are logged in. If it is not showing you can click on More link to find it.
Then click on create page link as shown in screenshot.
If you still can not find it Click Here to go [...]]]></description>
			<content:encoded><![CDATA[<h3>How to access Faceboo Pages?</h3>
<p>You can find Facebook Pages in left column on your<a href="http://www.facebook.com/" target="_blank"> Facebook home page</a> when you are logged in. If it is not showing you can click on More link to find it.<a href="http://www.khawaib.co.uk/blog/wp-content/uploads/2010/07/fb_pages_link.png"><img alt="" src="http://www.khawaib.co.uk/blog/wp-content/uploads/2010/07/fb_pages_link.png" title="Facebook Page" class="alignright" width="184" height="414" /></a></p>
<p>Then click on create page link as shown in screenshot.</p>
<p>If you still can not find it <a href="http://www.new.facebook.com/pages/create.php" target="_blank">Click Here</a> to go directly to <a href="http://www.new.facebook.com/pages/create.php" target="_blank">Facebook Create Page Screen</a> (Make sure you are signed in Facebook).</p>
<h3>Creating a Facebook Page</h3>
<p>On Create a Page screen you will be asked to enter various categories of information to input. </p>
<p>You can choose between Official Page or Community Page.</p>
<p>When you create a page you will see URL in Browser address bar for that page. For example </p>
<h3>Customized Facebook Profile URL</h3>
<p>If you have customised Facebook Page URL then your ID will not show in URL and your URL will be like http://www.facebook.com/USER_NAME instead.</p>
<p>To find your Facebook Page ID from a Customised URL simply click on your profile picture and it will take you to your profile pictures. On profile pictures area you will see your Facebook Page ID in browser address bar.<br />
<a href="http://www.khawaib.co.uk/blog/wp-content/uploads/2010/07/create_page.png"><img alt="" src="http://www.khawaib.co.uk/blog/wp-content/uploads/2010/07/create_page.png" title="Create Page" class="alignright" width="320" height="207" /></a></p>
<div style="clear:both"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=192</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP String Functions</title>
		<link>http://www.khawaib.co.uk/blog/?p=190</link>
		<comments>http://www.khawaib.co.uk/blog/?p=190#comments</comments>
		<pubDate>Mon, 12 Jul 2010 17:36:39 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=190</guid>
		<description><![CDATA[To search a string in a text:

$string = &#34;Ahmed&#34;;
$text = &#34;My name is Ahmed.&#34;;

if(strstr($text, $string)) {
   echo &#34;found it.&#34;;
} else {
   echo &#34;not found.&#34;;
}

]]></description>
			<content:encoded><![CDATA[<p>To search a string in a text:</p>
<pre class="brush: php;">
$string = &quot;Ahmed&quot;;
$text = &quot;My name is Ahmed.&quot;;

if(strstr($text, $string)) {
   echo &quot;found it.&quot;;
} else {
   echo &quot;not found.&quot;;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=190</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Regular Expressions</title>
		<link>http://www.khawaib.co.uk/blog/?p=186</link>
		<comments>http://www.khawaib.co.uk/blog/?p=186#comments</comments>
		<pubDate>Sat, 12 Jun 2010 23:09:46 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Regex]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=186</guid>
		<description><![CDATA[Strips tags won&#8217;t remove the actual jscript

$text = preg_replace( &#34;'&#60;script[^&#62;]*&#62;.*?&#60;/script&#62;'si&#34;, &#34;&#34;, $text );

]]></description>
			<content:encoded><![CDATA[<p>Strips tags won&#8217;t remove the actual jscript</p>
<pre class="brush: php;">
$text = preg_replace( &quot;'&lt;script[^&gt;]*&gt;.*?&lt;/script&gt;'si&quot;, &quot;&quot;, $text );
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=186</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Menu Item Properties</title>
		<link>http://www.khawaib.co.uk/blog/?p=184</link>
		<comments>http://www.khawaib.co.uk/blog/?p=184#comments</comments>
		<pubDate>Mon, 07 Jun 2010 15:08:42 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Joomla! 1.5]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu item]]></category>
		<category><![CDATA[menu properties]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=184</guid>
		<description><![CDATA[Gives current menu:
$currentMenuName = JSite::getMenu()-&#62;getActive()-&#62;name ;
Current Menu ID:
$currentMenuId = JSite::getMenu()-&#62;getActive()-&#62;id ;
Gives menu status, published (1) and unpublished (0)
$currentMenuStatus = JSite::getMenu()-&#62;getActive()-&#62;published ;
Non SEO URL of current menu:
$currentMenuLink = JSite::getMenu()-&#62;getActive()-&#62;link ;
Current menus parent ID:
$currentMenuParent = JSite::getMenu()-&#62;getActive()-&#62;parent ;
Current Menu’s Access Level Value.(Public = 0, Registered = 1, Special= 2)
$currentMenuAccess = JSite::getMenu()-&#62;getActive()-&#62;access ;
[/php]

[php]
]]></description>
			<content:encoded><![CDATA[<p>Gives current menu:</p>
<pre class="brush: php;">$currentMenuName = JSite::getMenu()-&gt;getActive()-&gt;name ;</pre>
<p>Current Menu ID:</p>
<pre class="brush: php;">$currentMenuId = JSite::getMenu()-&gt;getActive()-&gt;id ;</pre>
<p>Gives menu status, published (1) and unpublished (0)</p>
<pre class="brush: php;">$currentMenuStatus = JSite::getMenu()-&gt;getActive()-&gt;published ;</pre>
<p>Non SEO URL of current menu:</p>
<pre class="brush: php;">$currentMenuLink = JSite::getMenu()-&gt;getActive()-&gt;link ;</pre>
<p>Current menus parent ID:</p>
<pre class="brush: php;">$currentMenuParent = JSite::getMenu()-&gt;getActive()-&gt;parent ;</pre>
<p>Current Menu’s Access Level Value.(Public = 0, Registered = 1, Special= 2)</p>
<pre class="brush: php;">$currentMenuAccess = JSite::getMenu()-&gt;getActive()-&gt;access ;</pre>
<pre class="brush: php;">[/php]

[php]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=184</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chmod directories/files using command line</title>
		<link>http://www.khawaib.co.uk/blog/?p=178</link>
		<comments>http://www.khawaib.co.uk/blog/?p=178#comments</comments>
		<pubDate>Fri, 21 May 2010 17:24:31 +0000</pubDate>
		<dc:creator>khawaib</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[exec chmod]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.khawaib.co.uk/blog/?p=178</guid>
		<description><![CDATA[
//Following command will set the permission for all directories only:
find . -type d -exec chmod 755 {} \;


//Following command will set the permission for all files only:
find . -type f -exec chmod 644 {} \;


//To only apply chmod to files with names matching a specified pattern:
find . -type f -name '*.htm*' -exec chmod 644 {} [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
//Following command will set the permission for all directories only:
find . -type d -exec chmod 755 {} \;
</pre>
<pre class="brush: php;">
//Following command will set the permission for all files only:
find . -type f -exec chmod 644 {} \;
</pre>
<pre class="brush: php;">
//To only apply chmod to files with names matching a specified pattern:
find . -type f -name '*.htm*' -exec chmod 644 {} \;
</pre>
<pre class="brush: php;">
//To restrict to an owner you can also do:
find . -type d -user fileowner -exec chmod 0755 {} \;
</pre>
<pre class="brush: php;">
//Changing files of only a specific type/extension is:
find ./ -name *.pdf -exec chmod 755 {} \;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.khawaib.co.uk/blog/?feed=rss2&amp;p=178</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
