<?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>HighND.com</title>
	<atom:link href="http://www.highnd.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.highnd.com</link>
	<description>Just another blog?</description>
	<lastBuildDate>Mon, 03 Oct 2011 21:23:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to enable error reporting in PHP without editing php.ini?</title>
		<link>http://www.highnd.com/articles/php-development/how-to-enable-error-reporting-in-php-without-editing-php-ini</link>
		<comments>http://www.highnd.com/articles/php-development/how-to-enable-error-reporting-in-php-without-editing-php-ini#comments</comments>
		<pubDate>Mon, 03 Oct 2011 20:40:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.highnd.com/?p=497</guid>
		<description><![CDATA[If your website is on a shared hosting and can&#8217;t edit your php configuration, or you just want to do a quick debugging for your php script on a production server, you can use the error_reporting function in php: error_reporting(E_ALL); From php.net: int error_reporting ([ int $level ] ) The error_reporting() function sets the error_reporting [...]]]></description>
			<content:encoded><![CDATA[<p>If your website is on a shared hosting and can&#8217;t edit your php configuration, or you just want to do a quick debugging for your php script on a production server, you can use the error_reporting function in php:</p>
<pre>error_reporting(E_ALL);</pre>
<p><span id="more-497"></span></p>
<blockquote><p><a href="http://php.net/manual/en/function.error-reporting.php" target="_blank">From php.net:</a></p>
<p>int error_reporting ([ int $level ] )</p>
<p>The error_reporting() function sets the error_reporting directive at runtime. PHP has many levels of errors, using this function sets that level for the duration (runtime) of your script. If the optional level is not set, error_reporting() will just return the current error reporting level.</p></blockquote>
<p>In order to use this function, just put it on the top of your script while specifying the error reporting level:</p>
<p>Turn on all error reporting:</p>
<pre>error_reporting(E_ALL);
// OR
error_reporting(-1);
// OR
ini_set('error_reporting', E_ALL);</pre>
<p>Turn off all error reporting:</p>
<pre>error_reporting(0);</pre>
<p>Turn on specific error reporting levels:</p>
<pre>error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT | E_DEPRECATED);
// Report all errors except E_NOTICE:
error_reporting(E_ALL ^ E_NOTICE);</pre>
<p>Now if display_errors is turned off in php configuration file, errors will not be displayed on the page even if you&#8217;re using error_reporting method , so you need to enable display_errors first with ini_set:</p>
<pre>ini_set('display_errors','On');
error_reporting(E_ALL);</pre>
<p>&nbsp;</p>]]></content:encoded>
			<wfw:commentRss>http://www.highnd.com/articles/php-development/how-to-enable-error-reporting-in-php-without-editing-php-ini/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Yii Reference 1 &#8211; Create Url, Links and Redirections</title>
		<link>http://www.highnd.com/articles/yii-framework/yii-url-links-and-redirection</link>
		<comments>http://www.highnd.com/articles/yii-framework/yii-url-links-and-redirection#comments</comments>
		<pubDate>Mon, 19 Sep 2011 20:54:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii Framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[yii]]></category>

		<guid isPermaLink="false">http://www.highnd.com/?p=458</guid>
		<description><![CDATA[This post will be a reference on how deal with urls, links and browser redirects in Yii Framework. It will guide you on how to use different built-in functions in Yii like createUrl(), createAbsoluteUrl(), CHtml::link(), redirect(). Create URL $url = Yii::app()-&#62;createUrl('site/index'); Result: index.php?r=site/index You will obtain this format of URL if you&#8217;re not using the [...]]]></description>
			<content:encoded><![CDATA[<p>This post will be a reference on how deal with urls, links and browser redirects in Yii Framework. It will guide you on how to use different built-in functions in Yii like createUrl(), createAbsoluteUrl(), CHtml::link(), redirect().</p>
<h3>Create URL</h3>
<pre>$url = Yii::app()-&gt;createUrl('site/index');</pre>
<p><span id="more-458"></span><br />
Result: index.php?r=site/index<br />
You will obtain this format of URL if you&#8217;re not using the URL Manager to make your links more user-friendly.</p>
<pre>$url = Yii::app()-&gt;createUrl('site/index', array('id'=&gt;100));</pre>
<p>Result: index.php?r=site/index&amp;id=100</p>
<p>&nbsp;</p>
<h3>Create URL from Controller</h3>
<pre>Yii::app()-&gt;controller-&gt;createUrl("index", array("id"=&gt;100));</pre>
<p>Result: index.php?r=site/index&amp;id=100<br />
You will obtain this result if your current controller is &#8220;SiteController&#8221;.</p>
<p>If you are in a controller you can simply write</p>
<pre>$this-&gt;createUrl('index',array('id'=&gt;100));</pre>
<p>&nbsp;</p>
<h3>Create absolute URL:</h3>
<p>In order to create an absolute path url you need to use createAbsoluteUrl() function:</p>
<pre>Yii::app()-&gt;createAbsoluteUrl('site/index',array('id'=&gt;100));</pre>
<p>Result: http:⁄⁄yourdomain.tld⁄index.php?r=site⁄index&amp;id=100</p>
<p>&nbsp;</p>
<h3>Create Link</h3>
<p>You can use the CHTML helper to quickly create an anchor in HTML:</p>
<pre>echo CHtml::link('text', array('site/index', 'id'=&gt;100));</pre>
<p>Result: &lt;a href=&#8221;/ABC/index.php?r=site/index&amp;amp;id=100&#8243;&gt;text&lt;/a&gt;</p>
<p>&nbsp;</p>
<h3>Redirect Browser</h3>
<pre>$this-&gt;redirect(array('site/index','id'=&gt;100));</pre>
<p>It will redirect the browser to index.php?r=site/index&amp;id=100</p>]]></content:encoded>
			<wfw:commentRss>http://www.highnd.com/articles/yii-framework/yii-url-links-and-redirection/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

