<?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>GO IT WORLD &#124; IT TECH &#124; IT NEWS &#187; PHP World</title>
	<atom:link href="http://www.goitworld.com/category/server-world/php-world/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goitworld.com</link>
	<description>goitworld.com</description>
	<lastBuildDate>Tue, 10 Jan 2012 10:03:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>PHP Code Security Part 6</title>
		<link>http://www.goitworld.com/php-code-security-part-6/</link>
		<comments>http://www.goitworld.com/php-code-security-part-6/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 01:11:05 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[magic quotes]]></category>
		<category><![CDATA[php security]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/php-code-security-part-6/</guid>
		<description><![CDATA[<p style="float: right;margin: 4px;">


</p><h6>Magic Quotes:</h6>
<p>What are Magic Quotes:</p>
<p>Magic Quotes is a process that automagically escapes incoming data to the PHP script. It&#8217;s preferred to code with magic quotes off and to instead escape the data at runtime, as needed.</p>
<p>Why did we use Magic Quotes:</p>
<p>There is no reason to use magic quotes because they are no longer a supported part of PHP. However, they did exist and did help a few beginners blissfully and unknowingly write better (more secure) code. But, when dealing with code that relies upon this behavior it&#8217;s better to update the code&#8230; <a href="http://www.goitworld.com/php-code-security-part-6/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/php-code-security-part-6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Code Security Part 5</title>
		<link>http://www.goitworld.com/php-code-security-part-5/</link>
		<comments>http://www.goitworld.com/php-code-security-part-5/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:48:31 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[php security]]></category>
		<category><![CDATA[Submitted Data]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/php-code-security-part-5/</guid>
		<description><![CDATA[<h5>User Submitted Data</h5>
<p>The greatest weakness in many PHP programs is not inherent in the language itself, but merely an issue of code not being written with security in mind. For this reason, you should always take the time to consider the implications of a given piece of code, to ascertain the possible damage if an unexpected variable is submitted to it.</p>
<p><b>Example 1 Dangerous Variable Usage</b></p>
<p><code>&#60;?php     <br />// remove a file from the user's home directory... or maybe      <br />// somebody else's?      <br />unlink ($evil_var);      <br />// Write logging of their access... or maybe an /etc/passwd entry?      <br</code>&#8230; <a href="http://www.goitworld.com/php-code-security-part-5/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/php-code-security-part-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code Security Part 4</title>
		<link>http://www.goitworld.com/php-code-security-part-4/</link>
		<comments>http://www.goitworld.com/php-code-security-part-4/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 07:46:00 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[php security]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/php-code-security-part-4/</guid>
		<description><![CDATA[<p>Using Register Globals</p>
<p>Perhaps the most controversial change in PHP is when the default value for the PHP directive register_globals went from ON to OFF in PHP <a href="http://www.php.net/releases/4_2_0.php">» 4.2.0</a>. Reliance on this directive was quite common and many people didn&#8217;t even know it existed and assumed it&#8217;s just how PHP works. This page will explain how one can write insecure code with this directive but keep in mind that the directive itself isn&#8217;t insecure but rather it&#8217;s the misuse of it. </p>
<p>When on, register_globals will inject your scripts with all sorts of variables, like request variables from HTML&#8230; <a href="http://www.goitworld.com/php-code-security-part-4/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/php-code-security-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code Security Part 3</title>
		<link>http://www.goitworld.com/php-code-security-part-3/</link>
		<comments>http://www.goitworld.com/php-code-security-part-3/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 12:43:44 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[error reporting]]></category>
		<category><![CDATA[php security]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/php-code-security-part-3/</guid>
		<description><![CDATA[<h3>Error Reporting</h3>
<p>With PHP security, there are two sides to error reporting. One is beneficial to increasing security, the other is detrimental. </p>
<p>A standard attack tactic involves profiling a system by feeding it improper data, and checking for the kinds, and contexts, of the errors which are returned. This allows the system cracker to probe for information about the server, to determine possible weaknesses. For example, if an attacker had gleaned information about a page based on a prior form submission, they may attempt to override variables, or modify them: </p>
<p><b>Example 1 Attacking Variables with a custom HTML</b>&#8230; <a href="http://www.goitworld.com/php-code-security-part-3/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/php-code-security-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code Security Part 2</title>
		<link>http://www.goitworld.com/php-code-security-part-2/</link>
		<comments>http://www.goitworld.com/php-code-security-part-2/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 10:28:28 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/php-code-security-part-2/</guid>
		<description><![CDATA[<p><strong>SQL Injection</strong>    <br />Many web developers are unaware of how SQL queries can be tampered with, and assume that an SQL query is a trusted command. It means that SQL queries are able to circumvent access controls, thereby bypassing standard authentication and authorization checks, and sometimes SQL queries even may allow access to host operating system level commands. </p>
<p>Direct SQL Command Injection is a technique where an attacker creates or alters existing SQL commands to expose hidden data, or to override valuable ones, or even to execute dangerous system level commands on the database host. This is accomplished by&#8230; <a href="http://www.goitworld.com/php-code-security-part-2/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/php-code-security-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Code Security Part 1</title>
		<link>http://www.goitworld.com/php-code-security-part-1/</link>
		<comments>http://www.goitworld.com/php-code-security-part-1/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:39:48 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[php security]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/php-code-security-part-1/</guid>
		<description><![CDATA[<p>Filesystem Security:</p>
<p>PHP is subject to the security built into most server systems with respect to permissions on a file and directory basis. This allows you to control which files in the filesystem may be read. Care should be taken with any files which are world readable to ensure that they are safe for reading by all users who have access to that filesystem. </p>
<p>Since PHP was designed to allow user level access to the filesystem, it&#8217;s entirely possible to write a PHP script that will allow you to read system files such as /etc/passwd, modify your ethernet connections,&#8230; <a href="http://www.goitworld.com/php-code-security-part-1/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/php-code-security-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>session_start: Cannot send session cookie &#8211; headers already sent by</title>
		<link>http://www.goitworld.com/session_start-cannot-send-session-cookie-headers-already-sent-by/</link>
		<comments>http://www.goitworld.com/session_start-cannot-send-session-cookie-headers-already-sent-by/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 09:18:51 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[PHP World]]></category>
		<category><![CDATA[already sent by]]></category>
		<category><![CDATA[cannot send session]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[session_start]]></category>

		<guid isPermaLink="false">http://www.goitworld.com/session_start-cannot-send-session-cookie-headers-already-sent-by/</guid>
		<description><![CDATA[<p>my session test code:</p>
<p>&#60;html&#62;    <br />&#60;head&#62;     <br />&#60;title&#62;PHP SESSION TEST CODE&#60;/title&#62;     <br />&#60;/head&#62;     <br />&#60;body&#62;     <br />&#60;?     <br />session_start();     <br />session_register(&#34;MVAR&#34;);     <br />$MVAR=&#34;hello world&#34;;     <br />echo &#34;The content of sess variable is $MVAR&#34;;     <br />?&#62;     <br />&#60;a href=&#34;call_session.php&#34;&#62;Next page&#60;/a&#62;     <br />&#60;/body&#62;     <br />&#60;/html&#62;</p>
<p>Error Tips</p>
<p>Warning: session_start(): Cannot send session cookie &#8211; headers already sent by (output started at d:\www\session.php:7) in d:\www\session.php on line 8</p>
<p>Warning: session_start(): Cannot send session cache limiter &#8211; headers already sent (output started at d:\www\session.php:7) in d:\www\session.php on line 8    <br />The content of sess variable is hello worldNext page</p>
<p>Solution:</p>
<p>1.Modify your php.ini&#8230; <a href="http://www.goitworld.com/session_start-cannot-send-session-cookie-headers-already-sent-by/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.goitworld.com/session_start-cannot-send-session-cookie-headers-already-sent-by/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

