<?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: URL file-access is disabled in the server configuration</title>
	<atom:link href="http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html</link>
	<description>Video Imports &#038; Downloads</description>
	<lastBuildDate>Sun, 27 Jun 2010 12:52:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: <img src='http://www.tubepress.net/wp-content/plugins/rpx/images/google.png'/> mikesalway75</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-695</link>
		<dc:creator><img src='http://www.tubepress.net/wp-content/plugins/rpx/images/google.png'/> mikesalway75</dc:creator>
		<pubDate>Tue, 13 Apr 2010 21:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-695</guid>
		<description>I&#039;ve got a WP site and was having this problem.
Reply #20 fixed it for me.
Thanks very much Jules!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got a WP site and was having this problem.<br />
Reply #20 fixed it for me.<br />
Thanks very much Jules!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.tubepress.net/wp-content/plugins/rpx/images/twitter.png'/> Peter Beddows</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-690</link>
		<dc:creator><img src='http://www.tubepress.net/wp-content/plugins/rpx/images/twitter.png'/> Peter Beddows</dc:creator>
		<pubDate>Wed, 31 Mar 2010 23:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-690</guid>
		<description>After experiencing same defined problem as described in this thread this morning with files that worked fine yesterday, the solution offered above herein seemed viable but did not work when tried. 

Then discovered that, in working very late last night, I forgot that I had moved one of the key &quot;require_once(&#039;xxx.php&#039;)&quot; files to another, more logical, folder on the server but had not updated the path to that file in the code of the related pages. 

Thought this worth mentioning here because although the error message I was getting was the exact same message at the head of this thread but the actual problem was a moved file witout concurrent path updates, not a change in URL file-access per se.</description>
		<content:encoded><![CDATA[<p>After experiencing same defined problem as described in this thread this morning with files that worked fine yesterday, the solution offered above herein seemed viable but did not work when tried. </p>
<p>Then discovered that, in working very late last night, I forgot that I had moved one of the key &#8220;require_once(&#8216;xxx.php&#8217;)&#8221; files to another, more logical, folder on the server but had not updated the path to that file in the code of the related pages. </p>
<p>Thought this worth mentioning here because although the error message I was getting was the exact same message at the head of this thread but the actual problem was a moved file witout concurrent path updates, not a change in URL file-access per se.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.tubepress.net/wp-content/plugins/rpx/images/twitter.png'/> Jules</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-682</link>
		<dc:creator><img src='http://www.tubepress.net/wp-content/plugins/rpx/images/twitter.png'/> Jules</dc:creator>
		<pubDate>Fri, 05 Feb 2010 05:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-682</guid>
		<description>It&#039;s much easier to use the built in WordPress HTTP API:

$url = &#039;http://www.example.com/file.cfm&#039;;
$request = new WP_Http;
$result = $request-&gt;request( $url );
echo $result[&#039;body&#039;];</description>
		<content:encoded><![CDATA[<p>It&#8217;s much easier to use the built in WordPress HTTP API:</p>
<p>$url = &#8216;http://www.example.com/file.cfm&#8217;;<br />
$request = new WP_Http;<br />
$result = $request-&gt;request( $url );<br />
echo $result['body'];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.tubepress.net/wp-content/plugins/rpx/images/google.png'/> srowens</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-659</link>
		<dc:creator><img src='http://www.tubepress.net/wp-content/plugins/rpx/images/google.png'/> srowens</dc:creator>
		<pubDate>Wed, 21 Oct 2009 21:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-659</guid>
		<description>@samiemathews82: papsy&#039;s response #13 is the simple solution.

Some servers have allow_url_include disabled for better security. Starting with PHP 5.2.X allow_url_include is disabled by default. So you only two easy solutions are to: 

1. Convince your web host to turn allow_url_fopen and allow_url_include on. Unlikely but they might do it.

2. Use CURL. papsy&#039;s response #13 is really the easiest way to do this.</description>
		<content:encoded><![CDATA[<p>@samiemathews82: papsy&#8217;s response #13 is the simple solution.</p>
<p>Some servers have allow_url_include disabled for better security. Starting with PHP 5.2.X allow_url_include is disabled by default. So you only two easy solutions are to: </p>
<p>1. Convince your web host to turn allow_url_fopen and allow_url_include on. Unlikely but they might do it.</p>
<p>2. Use CURL. papsy&#8217;s response #13 is really the easiest way to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.tubepress.net/wp-content/plugins/rpx/images/google.png'/> samiemathews82</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-658</link>
		<dc:creator><img src='http://www.tubepress.net/wp-content/plugins/rpx/images/google.png'/> samiemathews82</dc:creator>
		<pubDate>Wed, 14 Oct 2009 18:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-658</guid>
		<description>this sucks i had the same error but with another service. I was hoping to find a solution here but the php stuff i dont really understand that well. Im still in search of a simple solution to this.</description>
		<content:encoded><![CDATA[<p>this sucks i had the same error but with another service. I was hoping to find a solution here but the php stuff i dont really understand that well. Im still in search of a simple solution to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: koss</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-595</link>
		<dc:creator>koss</dc:creator>
		<pubDate>Thu, 25 Jun 2009 15:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-595</guid>
		<description>Thank you very much! It was very use full inforamtion!</description>
		<content:encoded><![CDATA[<p>Thank you very much! It was very use full inforamtion!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Byers</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-592</link>
		<dc:creator>Paul Byers</dc:creator>
		<pubDate>Sat, 20 Jun 2009 12:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-592</guid>
		<description>Thank you papsy, that would have stumped me for days...</description>
		<content:encoded><![CDATA[<p>Thank you papsy, that would have stumped me for days&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Get Six Pack Fast</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-562</link>
		<dc:creator>How to Get Six Pack Fast</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-562</guid>
		<description>I can tell that this is not the first time at all that you mention the topic. Why have you decided to touch it again?</description>
		<content:encoded><![CDATA[<p>I can tell that this is not the first time at all that you mention the topic. Why have you decided to touch it again?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexwebmaster</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-511</link>
		<dc:creator>Alexwebmaster</dc:creator>
		<pubDate>Tue, 03 Mar 2009 13:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-511</guid>
		<description>Hello webmaster 
I would like to share with you a link to your site 
write me here preonrelt@mail.ru</description>
		<content:encoded><![CDATA[<p>Hello webmaster<br />
I would like to share with you a link to your site<br />
write me here <a href="mailto:preonrelt@mail.ru">preonrelt@mail.ru</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: papsy</title>
		<link>http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html/comment-page-1#comment-504</link>
		<dc:creator>papsy</dc:creator>
		<pubDate>Thu, 19 Feb 2009 03:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.tubepress.net/url-file-access-is-disabled-in-the-server-configuration.html#comment-504</guid>
		<description>So to summarize:

1) Replace all occurrences of file_get_contents with curl_get_contents 
2) Add the following code to the top of any file you made that replacement in:
&lt;?php
require_once(&quot;myinc.php&quot;);
?&gt;
3) Create a new file (named myinc.php), with the contents being:
&lt;?php
/////////////////////////////////////////////
// copyright (c) 2009 adam@papsy.net etc etc
/////////////////////////////////////////////
if (!defined(&quot;ch&quot;))
{
  function setupch()
  {
    $ch = curl_init();
    $c  = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  return($ch);
  }
  
  define(&quot;ch&quot;, setupch());
  
  function curl_get_contents($url)
  {
    $c = curl_setopt(ch, CURLOPT_URL, $url);
    return(curl_exec(ch));
  }
}
?&gt;</description>
		<content:encoded><![CDATA[<p>So to summarize:</p>
<p>1) Replace all occurrences of file_get_contents with curl_get_contents<br />
2) Add the following code to the top of any file you made that replacement in:<br />
&lt;?php<br />
require_once(&quot;myinc.php&quot;);<br />
?&gt;<br />
3) Create a new file (named myinc.php), with the contents being:<br />
&lt;?php<br />
/////////////////////////////////////////////<br />
// copyright (c) 2009 <a href="mailto:adam@papsy.net">adam@papsy.net</a> etc etc<br />
/////////////////////////////////////////////<br />
if (!defined(&quot;ch&quot;))<br />
{<br />
  function setupch()<br />
  {<br />
    $ch = curl_init();<br />
    $c  = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
  return($ch);<br />
  }</p>
<p>  define(&quot;ch&quot;, setupch());</p>
<p>  function curl_get_contents($url)<br />
  {<br />
    $c = curl_setopt(ch, CURLOPT_URL, $url);<br />
    return(curl_exec(ch));<br />
  }<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
