<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP Security and YOU &#8211; Including files the right way</title>
	<atom:link href="http://www.hostnexus.com/blog/php-security-and-you-including-files-the-right-way/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hostnexus.com/blog/php-security-and-you-including-files-the-right-way/</link>
	<description>Status Updates, Rants, Musings and Real Advice for Webmasters</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:19:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Robert Spriggs</title>
		<link>http://www.hostnexus.com/blog/php-security-and-you-including-files-the-right-way/#comment-840</link>
		<dc:creator>Robert Spriggs</dc:creator>
		<pubDate>Wed, 02 Mar 2011 23:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostnexus.com/blog/?p=483#comment-840</guid>
		<description>I&#039;m with Alex as to why should you ever &quot;include&quot; a remote file. I don&#039;t think I&#039;ve ever done it - or if I did, it was when I was more naiave (however you spell it ).

A simple rule is if you get something from a remote server use CURL. Always. Then parse and understand the contents before doing what you need. 

A small side-note. It&#039;s amazing how few developers actually know what readfile() does. It&#039;s one of my interview questions for senior PHP developers - can you explain the difference between readfile(), include(), include_once(), require() and require_once(). It has only once (in a lot of interviews) been answered correctly. Only once. Most poeple get it confused with get_file_contents().

Also never eval() remote or uncensored code. That&#039;s inviting danger even more than including remote files.

Look after the shared servers ;)</description>
		<content:encoded><![CDATA[<p>I&#8217;m with Alex as to why should you ever &#8220;include&#8221; a remote file. I don&#8217;t think I&#8217;ve ever done it &#8211; or if I did, it was when I was more naiave (however you spell it ).</p>
<p>A simple rule is if you get something from a remote server use CURL. Always. Then parse and understand the contents before doing what you need. </p>
<p>A small side-note. It&#8217;s amazing how few developers actually know what readfile() does. It&#8217;s one of my interview questions for senior PHP developers &#8211; can you explain the difference between readfile(), include(), include_once(), require() and require_once(). It has only once (in a lot of interviews) been answered correctly. Only once. Most poeple get it confused with get_file_contents().</p>
<p>Also never eval() remote or uncensored code. That&#8217;s inviting danger even more than including remote files.</p>
<p>Look after the shared servers <img src='http://www.hostnexus.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.hostnexus.com/blog/php-security-and-you-including-files-the-right-way/#comment-838</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 19 Feb 2011 19:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.hostnexus.com/blog/?p=483#comment-838</guid>
		<description>The best solution is not to include remote files. I mean why would someone do that?

If you really need to include a file from a remote host, like you said, you can read the file then parse the need coded yourself instead of blindly executing it.</description>
		<content:encoded><![CDATA[<p>The best solution is not to include remote files. I mean why would someone do that?</p>
<p>If you really need to include a file from a remote host, like you said, you can read the file then parse the need coded yourself instead of blindly executing it.<br />
<span class="cluv">Alex&#180;s last [type] ..<a class="46473e31d9 838" rel="nofollow" href="http://www.jocurile.us/jocuri-barbie/Salonul-de-manichiura.html">Salonul de manichiura</a></span></p>
]]></content:encoded>
	</item>
</channel>
</rss>

