<?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, cURL, CURLOPT FOLLOWLOCATION and open basedir Or Safe Mode</title>
	<atom:link href="http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/</link>
	<description>Freelance PHP Ecommerce and SEO Developer in the UK</description>
	<lastBuildDate>Sat, 11 Feb 2012 03:49:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: idham</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3839</link>
		<dc:creator>idham</dc:creator>
		<pubDate>Thu, 09 Feb 2012 10:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3839</guid>
		<description>Thanks, may i can use you code to fix my problem as you mention.</description>
		<content:encoded><![CDATA[<p>Thanks, may i can use you code to fix my problem as you mention.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Robert</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3631</link>
		<dc:creator>Glenn Robert</dc:creator>
		<pubDate>Mon, 14 Nov 2011 10:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3631</guid>
		<description>To Tony Huang: The $l you can just delete and enter &#039;1&#039; instead. This means that if safe mode is not set, curl will make use of the CURLOPT_FOLLOWLOCATION. Anyhow, if CURLOPT_FOLLOWLOCATION seems to work for you, you are in no need of this script..</description>
		<content:encoded><![CDATA[<p>To Tony Huang: The $l you can just delete and enter &#8217;1&#8242; instead. This means that if safe mode is not set, curl will make use of the CURLOPT_FOLLOWLOCATION. Anyhow, if CURLOPT_FOLLOWLOCATION seems to work for you, you are in no need of this script..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Robert</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3630</link>
		<dc:creator>Glenn Robert</dc:creator>
		<pubDate>Mon, 14 Nov 2011 10:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3630</guid>
		<description>I just wanna say thanks to the author and all the contributors via comments! This code worked like a charm for me!
Cheers:-)</description>
		<content:encoded><![CDATA[<p>I just wanna say thanks to the author and all the contributors via comments! This code worked like a charm for me!<br />
Cheers:-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Huang</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3608</link>
		<dc:creator>Tony Huang</dc:creator>
		<pubDate>Thu, 03 Nov 2011 02:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3608</guid>
		<description>curl_setopt ($go, CURLOPT_FOLLOWLOCATION, $l);

What is the $l?</description>
		<content:encoded><![CDATA[<p>curl_setopt ($go, CURLOPT_FOLLOWLOCATION, $l);</p>
<p>What is the $l?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3510</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Tue, 27 Sep 2011 09:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3510</guid>
		<description>Hi @ all,

i&#039;m using the script on both windows an linux platforms.
Therefore the lines that explodes the header have to be changed.

Insteaf of:
$data = curl_exec($ch);
list($header, $data) = explode(&quot;\n\n&quot;, $data, 2);

use this:
$data1 = curl_exec($ch);
//Linux
list($header, $data) = explode(&quot;\n\n&quot;, $data1, 2);
if($data==null) {
//Windows-System
list($header, $data) = explode(&quot;\n\r&quot;, $data1, 2);
}

Best regards

Andreas</description>
		<content:encoded><![CDATA[<p>Hi @ all,</p>
<p>i&#8217;m using the script on both windows an linux platforms.<br />
Therefore the lines that explodes the header have to be changed.</p>
<p>Insteaf of:<br />
$data = curl_exec($ch);<br />
list($header, $data) = explode(&#8220;\n\n&#8221;, $data, 2);</p>
<p>use this:<br />
$data1 = curl_exec($ch);<br />
//Linux<br />
list($header, $data) = explode(&#8220;\n\n&#8221;, $data1, 2);<br />
if($data==null) {<br />
//Windows-System<br />
list($header, $data) = explode(&#8220;\n\r&#8221;, $data1, 2);<br />
}</p>
<p>Best regards</p>
<p>Andreas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wawan</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3467</link>
		<dc:creator>wawan</dc:creator>
		<pubDate>Tue, 13 Sep 2011 15:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3467</guid>
		<description>i have a website using wp.
when i want to install the plugin, i got the alert

Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/greendi4/public_html/kindle/wp-content/plugins/instant_traffic_robot/includes/classes/plugin.class.php on line 847

can you help me with this problem??</description>
		<content:encoded><![CDATA[<p>i have a website using wp.<br />
when i want to install the plugin, i got the alert</p>
<p>Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/greendi4/public_html/kindle/wp-content/plugins/instant_traffic_robot/includes/classes/plugin.class.php on line 847</p>
<p>can you help me with this problem??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3443</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 26 Aug 2011 18:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3443</guid>
		<description>Sand, $header is the first element of the $data array, but you may need to change &quot;\n\n&quot; to something which works on your system. See earlier comments.</description>
		<content:encoded><![CDATA[<p>Sand, $header is the first element of the $data array, but you may need to change &#8220;\n\n&#8221; to something which works on your system. See earlier comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sand</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3427</link>
		<dc:creator>Sand</dc:creator>
		<pubDate>Mon, 22 Aug 2011 08:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3427</guid>
		<description>list($header, $data) = explode(&quot;\n\n&quot;, $data, 2);

$header == ??</description>
		<content:encoded><![CDATA[<p>list($header, $data) = explode(&#8220;\n\n&#8221;, $data, 2);</p>
<p>$header == ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sand</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3426</link>
		<dc:creator>Sand</dc:creator>
		<pubDate>Mon, 22 Aug 2011 08:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3426</guid>
		<description>Error on Line 94 - Notice: Undefined offset: 1:
list($header, $data) = explode(&quot;\n\n&quot;, $data, 2);</description>
		<content:encoded><![CDATA[<p>Error on Line 94 &#8211; Notice: Undefined offset: 1:<br />
list($header, $data) = explode(&#8220;\n\n&#8221;, $data, 2);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/comment-page-1/#comment-3409</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Wed, 17 Aug 2011 08:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.edmondscommerce.co.uk/blog/curl/php-curl-curlopt_followlocation-and-open_basedir-or-safe-mode/#comment-3409</guid>
		<description>Awesome script. Really helped me! 

Thanks,
Karthik</description>
		<content:encoded><![CDATA[<p>Awesome script. Really helped me! </p>
<p>Thanks,<br />
Karthik</p>
]]></content:encoded>
	</item>
</channel>
</rss>

