<?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 for AskApache searching on libcurl</title>
	<atom:link href="http://www.askapache.com/search/libcurl/feed/?withcomments=1" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Thu, 16 May 2013 00:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on About AskApache by AskApache</title>
		<link>http://www.askapache.com/about/#comment-14718</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Sat, 27 Apr 2013 06:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/about/#comment-14718</guid>
		<description><![CDATA[Great article http://paultyma.blogspot.co.uk/2013/04/why-well-never-meet-aliens.html  except I would say to change the FTL.  I look at light speed like the next step after the speed of sound.

The step after light speed is shown in nature by black holes.  Space-time is faster than light.  

Think of creating and using wormholes (minus all the FTL tech we currently use to define them) to &quot;escape&quot; the space-time that is currently lights boundaries as well.

That beyond FTL limit leads to the idea of escaping the universe created by the Big Bang,  which leads to the idea that universes themselves may be as numerous as the stars are within them.

Oh to see the breakthrough!]]></description>
		<content:encoded><![CDATA[<p>Great article http://paultyma.blogspot.co.uk/2013/04/why-well-never-meet-aliens.html  except I would say to change the FTL.  I look at light speed like the next step after the speed of sound.</p>
<p>The step after light speed is shown in nature by black holes.  Space-time is faster than light.  </p>
<p>Think of creating and using wormholes (minus all the FTL tech we currently use to define them) to "escape" the space-time that is currently lights boundaries as well.</p>
<p>That beyond FTL limit leads to the idea of escaping the universe created by the Big Bang,  which leads to the idea that universes themselves may be as numerous as the stars are within them.</p>
<p>Oh to see the breakthrough!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sending POST form data with php CURL by Koroch</title>
		<link>http://www.askapache.com/php/sending-post-form-data-php-curl.html#comment-7410</link>
		<dc:creator>Koroch</dc:creator>
		<pubDate>Tue, 29 Jan 2013 01:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html#comment-7410</guid>
		<description><![CDATA[Great post. I used to be checking constantly this blog 
and I&#039;m impressed! Very useful info particularly the ultimate phase :) I handle such information a lot. I was looking for this certain info for a long time. Thank you and best of luck.]]></description>
		<content:encoded><![CDATA[<p>Great post. I used to be checking constantly this blog<br />
and I'm impressed! Very useful info particularly the ultimate phase :) I handle such information a lot. I was looking for this certain info for a long time. Thank you and best of luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Login to Google AdSense using PHP by Alain Pedrotti</title>
		<link>http://www.askapache.com/google/login-google-adsense-php.html#comment-3363</link>
		<dc:creator>Alain Pedrotti</dc:creator>
		<pubDate>Thu, 06 Dec 2012 20:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/webmaster/login-to-google-adsense-using-php.html#comment-3363</guid>
		<description><![CDATA[&lt;p&gt;Hi Charles,&lt;/p&gt;

&lt;p&gt;Thanks for your very interesting web site. I&#039;m begineer in cURL and I have a challenge to connect from a php page to a web server by using a cookie. This sample is very interesting for my challenge. I have just a question about cookie. It is uses to store cookie sent by server or you use data of this cookie file to send datas to the server. In fact, this php page runs everything night to get datas from energy logger with a http connection protected by a authentication form.&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Hi Charles,</p>
<p>Thanks for your very interesting web site. I'm begineer in cURL and I have a challenge to connect from a php page to a web server by using a cookie. This sample is very interesting for my challenge. I have just a question about cookie. It is uses to store cookie sent by server or you use data of this cookie file to send datas to the server. In fact, this php page runs everything night to get datas from energy logger with a http connection protected by a authentication form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Form Submission and Processing with fsockopen by AskApache</title>
		<link>http://www.askapache.com/php/speedy-form-post.html#comment-3294</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Tue, 04 Dec 2012 09:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/php/speedy-form-post.html#comment-3294</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@Chris C&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Nice feedback..  what I actually do instead of hardcoding the hostname is to use &lt;code&gt;$_SERVER[&#039;SERVER_ADDR&#039;]&lt;/code&gt; to connect, since this is all meant to be done on the same site.  The background processing is by another php process on the same server, though you could easily use multiple servers.  You would also probably enjoy reading &lt;a href=&quot;http://www.askapache.com/php/fsockopen-socket.html&quot;&gt;my post about a custom fsockopen class&lt;/a&gt; I wrote using snoopy, libcurl, etc..&lt;/p&gt;

&lt;p&gt;Here is what I actually use when the server has access to many IP devices in order to make the connection come from the correct IP.  I use the &lt;code&gt;stream_socket_client&lt;/code&gt; to open the socket instead of &lt;code&gt;fsockopen&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;
$opts=array(&#039;socket&#039;=&gt; array(&#039;bindto&#039;=&gt;&quot;{$_SERVER[&#039;SERVER_ADDR&#039;]}:0&quot;));
$h = stream_context_create($opts);
$fp = @stream_socket_client(&quot;{$host}:{$port}&quot;, $errno, $errstr, $tval, STREAM_CLIENT_CONNECT, $h);
&lt;/pre&gt;
]]></description>
		<content:encoded><![CDATA[<p><strong>@Chris C</strong></p>
<p>Nice feedback..  what I actually do instead of hardcoding the hostname is to use <code>$_SERVER['SERVER_ADDR']</code> to connect, since this is all meant to be done on the same site.  The background processing is by another php process on the same server, though you could easily use multiple servers.  You would also probably enjoy reading <a href="http://www.askapache.com/php/fsockopen-socket.html">my post about a custom fsockopen class</a> I wrote using snoopy, libcurl, etc..</p>
<p>Here is what I actually use when the server has access to many IP devices in order to make the connection come from the correct IP.  I use the <code>stream_socket_client</code> to open the socket instead of <code>fsockopen</code>.</p>
<pre>$opts=array('socket'=&gt; array('bindto'=&gt;"{$_SERVER['SERVER_ADDR']}:0"));
$h = stream_context_create($opts);
$fp = @stream_socket_client("{$host}:{$port}", $errno, $errstr, $tval, STREAM_CLIENT_CONNECT, $h);</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About AskApache by tatiana</title>
		<link>http://www.askapache.com/about/#comment-23</link>
		<dc:creator>tatiana</dc:creator>
		<pubDate>Sun, 02 Dec 2012 06:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/about/#comment-23</guid>
		<description><![CDATA[&lt;p&gt;I seldom leave comments, but did some searching and wound up here &lt;/p&gt;
&lt;p&gt;About AskApache. And I actually do have a few questions for you if it&#039;s all right. Could it be only me or does it give the impression like some of the comments appear like left by brain dead people? :-P And, if you are posting at other places, I would like to follow anything fresh you have to post. Could you list of the complete urls of all your social sites like your Facebook page, twitter feed, or linkedin profile?&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>I seldom leave comments, but did some searching and wound up here </p>
<p>About AskApache. And I actually do have a few questions for you if it's all right. Could it be only me or does it give the impression like some of the comments appear like left by brain dead people? :-P And, if you are posting at other places, I would like to follow anything fresh you have to post. Could you list of the complete urls of all your social sites like your Facebook page, twitter feed, or linkedin profile?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Form Submission and Processing with fsockopen by Chris C</title>
		<link>http://www.askapache.com/php/speedy-form-post.html#comment-1863</link>
		<dc:creator>Chris C</dc:creator>
		<pubDate>Thu, 25 Oct 2012 01:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/php/speedy-form-post.html#comment-1863</guid>
		<description><![CDATA[&lt;p&gt;Nope...&lt;/p&gt;
&lt;pre&gt;$fp = fsockopen(&quot;www.askapache.com&quot;, 80, $errno, $errstr, 30);&lt;/pre&gt;

&lt;p&gt;That 30 means 30sec. This is NOT async! In particular if the server on the other side is down this piece of code will hang for 30 seconds. Also the fwrite is going to take its sweet time to execute if there are problems on the network (that you can limit with &lt;code&gt;stream_set_timeout($fp, $my_timeout)&lt;/code&gt;. The best you can do is to set a low timeout on fsockopen to 0.1 (100ms) and &lt;code&gt;$my_timeout&lt;/code&gt; to 100ms. You risk though, that the request will timeout.&lt;/p&gt;

&lt;p&gt;Regarding &lt;strong&gt;@Alexandre&lt;/strong&gt; solution:&lt;/p&gt;
&lt;p&gt;You forgot to send a &lt;code&gt;Connection: close&lt;/code&gt; (See &lt;a href=&quot;http://stackoverflow.com/questions/124462/asynchronous-php-calls&quot;&gt;http://stackoverflow.com/questions/124462/asynchronous-php-calls&lt;/a&gt;  Christian DavÃ©n&#039;s answer). But if you use a MVC framework, it may not be practical.&lt;/p&gt;
&lt;p&gt;I would also very careful to use &lt;code&gt;set_time_limit(0);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This code also seems useless:&lt;/p&gt;
&lt;pre&gt;do{
  ...
  break;  // outie
} while(true);&lt;/pre&gt;
]]></description>
		<content:encoded><![CDATA[<p>Nope...</p>
<pre>$fp = fsockopen("www.askapache.com", 80, $errno, $errstr, 30);</pre>
<p>That 30 means 30sec. This is NOT async! In particular if the server on the other side is down this piece of code will hang for 30 seconds. Also the fwrite is going to take its sweet time to execute if there are problems on the network (that you can limit with <code>stream_set_timeout($fp, $my_timeout)</code>. The best you can do is to set a low timeout on fsockopen to 0.1 (100ms) and <code>$my_timeout</code> to 100ms. You risk though, that the request will timeout.</p>
<p>Regarding <strong>@Alexandre</strong> solution:</p>
<p>You forgot to send a <code>Connection: close</code> (See <a href="http://stackoverflow.com/questions/124462/asynchronous-php-calls">http://stackoverflow.com/questions/124462/asynchronous-php-calls</a>  Christian DavÃ©n's answer). But if you use a MVC framework, it may not be practical.</p>
<p>I would also very careful to use <code>set_time_limit(0);</code></p>
<p>This code also seems useless:</p>
<pre>do{
  ...
  break;  // outie
} while(true);</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sending POST form data with php CURL by AskApache</title>
		<link>http://www.askapache.com/php/sending-post-form-data-php-curl.html#comment-418</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Thu, 19 Apr 2012 06:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html#comment-418</guid>
		<description><![CDATA[&lt;p&gt;&lt;strong&gt;@ nev&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Good points!  The reason no email is being sent is because send_email is not a builtin function, meaning I defined that function myself but didn&#039;t publish it.&lt;/p&gt;
&lt;p&gt;You are absolutely right about the redirect header!  It should have been in the send-email.php script instead, I updated the post to reflect that..  But you are missing the major paradigm-shifting point of this technique, which is one of my all-time favorite hacks.&lt;/p&gt;
&lt;p&gt;The idea behind this is that instead of POSTING to a php script that gets your POST variables AND processes those variables right then (such as a sending mail function), instead you POST the variables to a php script that DOES NOT process the variables itself, instead it sends the POST variables to a 2nd php script which is the script that does the actual processing (such as sending mail).&lt;/p&gt;
&lt;p&gt;The reason that I say this is one of my favorite all-time hacks is because of 1 thing.  The 1 thing is how the 1st script is the one posting to the 2nd script, meaning instead of having to wait for the processing to finish to receive the page response, you can receive the page response (in this case a thank you page redirect) INSTANTLY because the 1st script is the one who has to &#039;wait&#039; for the 2nd script to finish, meanwhile the visitor who initiated the request is already at the thanks page while the 2nd script processes the request in the background.&lt;/p&gt;

&lt;p&gt;I think I will write a new more detailed article on this, but it&#039;s one of those things that I consider so highly valuable that I am tempted to tell people to GRTFM.. not you but you know what I mean.&lt;/p&gt;

&lt;p&gt;Anyway thanks for the feedback, I like the way you actually tested this stuff before you posted about it!!!!!!!!!  Just like I do.&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p><strong>@ nev</strong></p>
<p>Good points!  The reason no email is being sent is because send_email is not a builtin function, meaning I defined that function myself but didn't publish it.</p>
<p>You are absolutely right about the redirect header!  It should have been in the send-email.php script instead, I updated the post to reflect that..  But you are missing the major paradigm-shifting point of this technique, which is one of my all-time favorite hacks.</p>
<p>The idea behind this is that instead of POSTING to a php script that gets your POST variables AND processes those variables right then (such as a sending mail function), instead you POST the variables to a php script that DOES NOT process the variables itself, instead it sends the POST variables to a 2nd php script which is the script that does the actual processing (such as sending mail).</p>
<p>The reason that I say this is one of my favorite all-time hacks is because of 1 thing.  The 1 thing is how the 1st script is the one posting to the 2nd script, meaning instead of having to wait for the processing to finish to receive the page response, you can receive the page response (in this case a thank you page redirect) INSTANTLY because the 1st script is the one who has to 'wait' for the 2nd script to finish, meanwhile the visitor who initiated the request is already at the thanks page while the 2nd script processes the request in the background.</p>
<p>I think I will write a new more detailed article on this, but it's one of those things that I consider so highly valuable that I am tempted to tell people to GRTFM.. not you but you know what I mean.</p>
<p>Anyway thanks for the feedback, I like the way you actually tested this stuff before you posted about it!!!!!!!!!  Just like I do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About AskApache by Ivan</title>
		<link>http://www.askapache.com/about/#comment-34</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Wed, 18 Apr 2012 19:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/about/#comment-34</guid>
		<description><![CDATA[hi

i am forced to use phpmailer

I have a form with :

&lt;pre&gt;$name = $_REQUEST[&#039;name&#039;] ;
$email = $_REQUEST[&#039;email&#039;] ;
$textarea = $_REQUEST[&#039;textarea&#039;] ;
&#160;
$mail = new PHPMailer();
$mail-&gt;IsSMTP();
&#160;
$mail-&gt;AddAddress(&quot;myemail@domain.com&quot;, &quot;Full Name&quot;);
&lt;/pre&gt;

My email gets sent to myemail@domain.com ...

Is there a way to send a thank you email to $email ?]]></description>
		<content:encoded><![CDATA[<p>hi</p>
<p>i am forced to use phpmailer</p>
<p>I have a form with :</p>
<pre>$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$textarea = $_REQUEST['textarea'] ;
&nbsp;
$mail = new PHPMailer();
$mail-&gt;IsSMTP();
&nbsp;
$mail-&gt;AddAddress("myemail@domain.com", "Full Name");</pre>
<p>My email gets sent to myemail@domain.com ...</p>
<p>Is there a way to send a thank you email to $email ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sending POST form data with php CURL by nev</title>
		<link>http://www.askapache.com/php/sending-post-form-data-php-curl.html#comment-417</link>
		<dc:creator>nev</dc:creator>
		<pubDate>Wed, 28 Mar 2012 10:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html#comment-417</guid>
		<description><![CDATA[&lt;p&gt;I don&#039;t see how your &quot;Relaying POST data, allowing the script to redirect&quot; two-script example could ever work.&lt;/p&gt;

&lt;p&gt;OK, so the &lt;code&gt;send-email.php&lt;/code&gt; script is supposed to send the POST variables to &lt;code&gt;waiting.php&lt;/code&gt;.  If that happened, you wouldn&#039;t end up in your browser at &lt;code&gt;waiting.php&lt;/code&gt;.  All that would happen is that &lt;code&gt;waiting.php&lt;/code&gt; would supposedly receive and process the POST variables.&lt;/p&gt;

&lt;p&gt;So what&#039;s the point of the location redirect header in &lt;code&gt;waiting.php&lt;/code&gt;?  No-one is ever going to see it, so no-one is ever going to be redirected.&lt;/p&gt;

&lt;p&gt;By the way, I say &quot;the &lt;code&gt;send-email.php&lt;/code&gt; script is *supposed* to send the POST variables to &lt;code&gt;waiting.php&lt;/code&gt;&quot; - because I find it doesn&#039;t send them.  The email isn&#039;t sent, even when it&#039;s written properly as &lt;code&gt;mail()&lt;/code&gt;.&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>I don't see how your "Relaying POST data, allowing the script to redirect" two-script example could ever work.</p>
<p>OK, so the <code>send-email.php</code> script is supposed to send the POST variables to <code>waiting.php</code>.  If that happened, you wouldn't end up in your browser at <code>waiting.php</code>.  All that would happen is that <code>waiting.php</code> would supposedly receive and process the POST variables.</p>
<p>So what's the point of the location redirect header in <code>waiting.php</code>?  No-one is ever going to see it, so no-one is ever going to be redirected.</p>
<p>By the way, I say "the <code>send-email.php</code> script is *supposed* to send the POST variables to <code>waiting.php</code>" - because I find it doesn't send them.  The email isn't sent, even when it's written properly as <code>mail()</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Login to Google AdSense using PHP by r</title>
		<link>http://www.askapache.com/google/login-google-adsense-php.html#comment-1331</link>
		<dc:creator>r</dc:creator>
		<pubDate>Sun, 12 Feb 2012 20:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/webmaster/login-to-google-adsense-using-php.html#comment-1331</guid>
		<description><![CDATA[doesn&#039;t seem to work anymore]]></description>
		<content:encoded><![CDATA[<p>doesn't seem to work anymore</p>
]]></content:encoded>
	</item>
</channel>
</rss>
