<?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>cogitsolution &#187; Web Development &#8211; PHP</title>
	<atom:link href="http://www.cogitsolutions.com/blog/category/web-development-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cogitsolutions.com/blog</link>
	<description>Customized, Optimized, Generalized Solutions</description>
	<lastBuildDate>Thu, 08 Dec 2011 04:48:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Disable WordPress 3.1 admin bar for all users except admin</title>
		<link>http://www.cogitsolutions.com/blog/2011/08/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/08/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 08:11:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=138</guid>
		<description><![CDATA[function my_function_admin_bar($content) {
return ( current_user_can("administrator") ) ? $content : false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');

Reference: http://www.binbert.com/blog/2011/03/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/
]]></description>
			<content:encoded><![CDATA[<pre>function my_function_admin_bar($content) {
return ( current_user_can("administrator") ) ? $content : false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');

Reference: http://www.binbert.com/blog/2011/03/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/08/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>codeignitor IE session problem</title>
		<link>http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 14:35:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[CI session]]></category>
		<category><![CDATA[codeignitor]]></category>
		<category><![CDATA[IE 8 session]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=135</guid>
		<description><![CDATA[
was facing same problem of session with IE 8. Many  threads suggested for underscore, timezone difference. Real problem is  timezone difference. CI creates cookie with server time and IE checks  expiry related to client timezone. And here issues comes. You can not  change time zone of online server to match clients [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>was facing same problem of session with IE 8. Many  threads suggested for underscore, timezone difference. Real problem is  timezone difference. CI creates cookie with server time and IE checks  expiry related to client timezone. And here issues comes. You can not  change time zone of online server to match clients from all over world.  The better solution is change cookie / session expiry time. By default  it is two hours. Change it to 24 hours and problem will be solved.</p>
<p>In config.php file change value of following variable</p>
<p>from two hours</p>
<p>$config[‘sess_expiration’]        = 7200;</p>
<p>to 24 hours</p>
<p>$config[‘sess_expiration’]        = 3600 * 24;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>codeigniter Class ‘MY_Controller’ not found</title>
		<link>http://www.cogitsolutions.com/blog/2011/06/codeigniter-class-%e2%80%98my_controller%e2%80%99-not-found/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/06/codeigniter-class-%e2%80%98my_controller%e2%80%99-not-found/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 13:59:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=132</guid>
		<description><![CDATA[If you are using codeigniter 2.0 and getting following error
Fatal error: Class ‘MY_Controller’ not found in application\controllers\welcome.php on line 4
then reasons can be
1. you are either not loading it  properly (via an __autoload() or manually using include())
2. it is in  the wrong place.
In CI 2.0 MY_Controller should be in application/core. In previous version [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using codeigniter 2.0 and getting following error</p>
<p>Fatal error: Class ‘MY_Controller’ not found in application\controllers\welcome.php on line 4</p>
<p>then reasons can be</p>
<p>1. you are either not loading it  properly (via an __autoload() or manually using include())</p>
<p>2. it is in  the wrong place.</p>
<p>In CI 2.0 MY_Controller should be in application/core. In previous version it should be in application/library</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/06/codeigniter-class-%e2%80%98my_controller%e2%80%99-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>__PHP_Incomplete_Class Errors</title>
		<link>http://www.cogitsolutions.com/blog/2011/05/test/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/05/test/#comments</comments>
		<pubDate>Thu, 05 May 2011 16:06:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/2011/05/test/</guid>
		<description><![CDATA[If you get such a error That means class not defined before starting session.
If classes stored  in a session you must define your class before the call to session start().
If  you have  in configuration session auto_start = 1, you will have to  disable that so you can define your classes before starting the [...]]]></description>
			<content:encoded><![CDATA[<p>If you get such a error That means class not defined before starting session.</p>
<p>If classes stored  in a session you must define your class before the call to session start().</p>
<p>If  you have  in configuration session auto_start = 1, you will have to  disable that so you can define your classes before starting the session.</p>
<p>Another  easiest workaround is to define  __autoload() function before session start(). This way the appropriate classes are loaded when   needed and it will solve the error. also you do not need to make any  changes in configuration file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/05/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress sort posts by custom field numeric value</title>
		<link>http://www.cogitsolutions.com/blog/2011/04/wordpress-sort-posts-by-custom-field-numeric-value/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/04/wordpress-sort-posts-by-custom-field-numeric-value/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 14:38:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[post sort order]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=120</guid>
		<description><![CDATA[there is no default option in wordpress to set up sort order of post manually while adding post. Other options are sorting by title or date using query_post() function.  To set up custom sort order we can do this using custom field. Use following code
query_posts(orderby=meta_value&#38;meta_key=sort_order&#38;order=ASC&#8217;);
REMEMBER: if you use this function then you have to assign [...]]]></description>
			<content:encoded><![CDATA[<p>there is no default option in wordpress to set up sort order of post manually while adding post. Other options are sorting by title or date using query_post() function.  To set up custom sort order we can do this using custom field. Use following code</p>
<p>query_posts(orderby=meta_value&amp;meta_key=sort_order&amp;order=ASC&#8217;);</p>
<p><strong>REMEMBER</strong>: if you use this function then you have to assign sort_order custom field to each post. Otherwise posts which do not have sort_order custom field will not be displayed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/04/wordpress-sort-posts-by-custom-field-numeric-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the_content not responding to the &#8220;more tag&#8221; outside of WP</title>
		<link>http://www.cogitsolutions.com/blog/2011/04/the_content-not-responding-to-the-more-tag-outside-of-wp/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/04/the_content-not-responding-to-the-more-tag-outside-of-wp/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 14:34:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[more tag]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=118</guid>
		<description><![CDATA[when used setup_postdata() , the_content ignore more tag
the more tag does not work on custom queries like that.
You can set the global $more variable to either 1 or 0 to turn the  more functionality on or off. Do this right before your call to the  content:
global $more;
$more = 1;
the_content();

0 means turn on
1 means [...]]]></description>
			<content:encoded><![CDATA[<p>when used setup_postdata() , the_content ignore more tag</p>
<p>the more tag does not work on custom queries like that.</p>
<p>You can set the global $more variable to either 1 or 0 to turn the  more functionality on or off. Do this right before your call to the  content:</p>
<pre><code>global $more;
$more = 1;
the_content();

0 means turn on
1 means turn off
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/04/the_content-not-responding-to-the-more-tag-outside-of-wp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla Component Install &#8211; Unable to Find Install Package</title>
		<link>http://www.cogitsolutions.com/blog/2011/02/joomla-component-install-unable-to-find-install-package/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/02/joomla-component-install-unable-to-find-install-package/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 04:38:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=112</guid>
		<description><![CDATA[Symptoms:
Joomla  1.5 fresh install was working fine and was able to install and  uninstall mods, extensions templates, etc. just fine. After a few days  of set up,  modifying my templates and adjusting my Global Settings, I  was not able to upload any modules, extensions, templates, etc. and  continuously received the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Symptoms:</strong></p>
<p>Joomla  1.5 fresh install was working fine and was able to install and  uninstall mods, extensions templates, etc. just fine. After a few days  of set up,  modifying my templates and adjusting my Global Settings, I  was not able to upload any modules, extensions, templates, etc. and  continuously received the <strong>&#8216;Unable to Find Install Package&#8217;</strong>. <strong><em>This was not a legacy issue.</em></strong></p>
<p><strong>The Solution:</strong></p>
<p>During my setup, I had enabled my FTP but later turned it off in my Global Settings. <strong>However</strong>,  what I discovered was that my FTP was not actually &#8216;turning off&#8217;. When I  would deactivate it, and save my settings, the next time that I logged  into my Global Settings, it would be back on. To resolve this, I went  directly into my <strong>configuration.php file and manually adjusted the FTP settings.</strong></p>
<p>var $ftp_enable = &#8216;0&#8242;;<br />
var $ftp_host = &#8221;;<br />
var $ftp_port = &#8221;;<br />
var $ftp_user = &#8221;;<br />
var $ftp_pass = &#8221;;<br />
var $ftp_root = &#8221;;</p>
<p><strong>So, in short &#8212; try adjusting your FTP settings directly in your configuration.php file.</strong></p>
<p>I hope this helps someone else!</p>
<p>Details by</p>
<p>Miss Vicky</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/02/joomla-component-install-unable-to-find-install-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Admin Flash 10 uploaded  fix</title>
		<link>http://www.cogitsolutions.com/blog/2011/01/magento-admin-flash-10-uploaded-fix/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/01/magento-admin-flash-10-uploaded-fix/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 14:29:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[flash 10]]></category>
		<category><![CDATA[flash uploader]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[product image uploader]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=109</guid>
		<description><![CDATA[copy following files  from 1.2.1 or 1.3.*  version and issue will be solved
 app/code/core/Mage/Adminhtml/Block/Media/Uploader.php
app/design/adminhtml/default/default/template/media/uploader.phtml
js/mage/adminhtml/flexuploader.js
js/mage/adminhtml/product.js
skin/adminhtml/default/default/media/uploader.swf 
**** Backup existing files before overwriting with latest files so that if required you can revert  changes
]]></description>
			<content:encoded><![CDATA[<p>copy following files  from 1.2.1 or 1.3.*  version and issue will be solved</p>
<div><code> app/code/core/Mage/Adminhtml/Block/Media/Uploader.php<br />
app/design/adminhtml/default/default/template/media/uploader.phtml<br />
js/mage/adminhtml/flexuploader.js<br />
js/mage/adminhtml/product.js<br />
skin/adminhtml/default/default/media/uploader.swf </code></div>
<div>**** Backup existing files before overwriting with latest files so that if required you can revert  changes</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/01/magento-admin-flash-10-uploaded-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to reset Typo3 administrative password?</title>
		<link>http://www.cogitsolutions.com/blog/2010/12/how-to-reset-typo3-administrative-password/</link>
		<comments>http://www.cogitsolutions.com/blog/2010/12/how-to-reset-typo3-administrative-password/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 04:12:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[password reset]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=107</guid>
		<description><![CDATA[simple and quick option for programmer is to reset directly from database. Execute following query and it will reset your password
 update be_users set password=md5(&#8216;your new password&#8217;) where username = &#8216;admin&#8217;;
This will change your administrative password to &#8216;your new password&#8217;.
Keep in mind that it is important for your installation security to change the password again [...]]]></description>
			<content:encoded><![CDATA[<p>simple and quick option for programmer is to reset directly from database. Execute following query and it will reset your password<br />
<em> update be_users set password=md5(&#8216;your new password&#8217;) where username = &#8216;admin&#8217;;</em></p>
<p>This will change your administrative password to <strong>&#8216;</strong><em>your new password&#8217;</em>.</p>
<p>Keep in mind that it is important for your installation security to change the password again once you are logged in the administrative area.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2010/12/how-to-reset-typo3-administrative-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Default Stock Availability set to ‘in Stock’</title>
		<link>http://www.cogitsolutions.com/blog/2010/09/magento-default-stock-availability-set-to-%e2%80%98in-stock%e2%80%99/</link>
		<comments>http://www.cogitsolutions.com/blog/2010/09/magento-default-stock-availability-set-to-%e2%80%98in-stock%e2%80%99/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 04:26:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=98</guid>
		<description><![CDATA[You need to add an attribute to the database:
 insert into core_config_data
values ( null, 'default', 0, 'cataloginventory/item_options/is_in_stock', 1 ); 
Refresh the cache and you’ll see it works.

by
Conor Wyse

to set default quantity

 insert into core_config_data
values ( null, 'default', 0, 'cataloginventory/item_options/qty', 10 ); 


you can change 10 to your choice
]]></description>
			<content:encoded><![CDATA[<div>You need to add an attribute to the database:</div>
<div><code> insert into core_config_data<br />
values ( null, 'default', 0, 'cataloginventory/item_options/is_in_stock', 1 ); </code></div>
<div>Refresh the cache and you’ll see it works.</div>
<div></div>
<div>by</div>
<div>Conor Wyse</div>
<div></div>
<div>to set default quantity</div>
<div>
<div><code> insert into core_config_data<br />
values ( null, 'default', 0, 'cataloginventory/item_options/qty', 10 ); </code></div>
</div>
<div></div>
<div>you can change 10 to your choice</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2010/09/magento-default-stock-availability-set-to-%e2%80%98in-stock%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

