<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Jelly and Custard</title>
	<link>http://www.jellyandcustard.com</link>
	<description>Web Development Blog</description>
	<pubDate>Mon, 12 May 2008 12:31:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>Comment on Raw POST Data in PHP by Shai Mishali</title>
		<link>http://www.jellyandcustard.com/2006/01/05/raw-post-data-in-php/#comment-28397</link>
		<pubDate>Wed, 16 Apr 2008 08:35:05 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/01/05/raw-post-data-in-php/#comment-28397</guid>
					<description>If talking about an HTML form, a submit button MUST be present in order to send the form's post data. 

Or a &quot;submit&quot; type input or a &quot;image&quot; (which is a submit in the form of an image) 

You can hide it if it bothers you:
 

Cheers,
Shai.</description>
		<content:encoded><![CDATA[<p>If talking about an HTML form, a submit button MUST be present in order to send the form&#039;s post data. </p>
<p>Or a &#034;submit&#034; type input or a &#034;image&#034; (which is a submit in the form of an image) </p>
<p>You can hide it if it bothers you:</p>
<p>Cheers,<br />
Shai.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Email Header Injection in PHP by Graham</title>
		<link>http://www.jellyandcustard.com/2006/02/24/email-header-injection-in-php/#comment-28026</link>
		<pubDate>Fri, 04 Apr 2008 06:41:38 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/02/24/email-header-injection-in-php/#comment-28026</guid>
					<description>I have also found it useful to collect the IP address of people who respond using my forms and creating a list of IP addresses that attempt to break the sanitisation, and then:

&lt;code&gt;
  $IP_addr  = $_SERVER['REMOTE_ADDR'];
  $banlist  = fopen(&quot;badIP.txt&quot;, &quot;r&quot;);
  $badips   = &quot;&quot;;
  while ( $data = fgets($banlist) ) {
    $badips .= $data . &quot;;&quot;;
  }
  if ( strstr($badips, $IP_addr) ) die();
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I have also found it useful to collect the IP address of people who respond using my forms and creating a list of IP addresses that attempt to break the sanitisation, and then:</p>
<p><code><br />
  $IP_addr  = $_SERVER['REMOTE_ADDR'];<br />
  $banlist  = fopen("badIP.txt", "r");<br />
  $badips   = "";<br />
  while ( $data = fgets($banlist) ) {<br />
    $badips .= $data . ";";<br />
  }<br />
  if ( strstr($badips, $IP_addr) ) die();<br />
</code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using DirectoryIterator to List Files in PHP by Tims Blog &#187; Blog Archive &#187; Whoops</title>
		<link>http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/#comment-27768</link>
		<pubDate>Fri, 28 Mar 2008 17:00:30 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/#comment-27768</guid>
					<description>[...] using directoryiterator to list files in php [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] using directoryiterator to list files in php [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Installing PECL Modules by Installing PECL Extensions &#124; Burlymike.com 3.2</title>
		<link>http://www.jellyandcustard.com/2006/01/19/installing-pecl-modules/#comment-27693</link>
		<pubDate>Wed, 26 Mar 2008 20:08:29 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/01/19/installing-pecl-modules/#comment-27693</guid>
					<description>[...] Great guide here. What is the difference then all the other guides out there? Most other guides fail to mention this portion of the installation process:  You will need to activate the extension by editting your php.ini and add: [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Great guide here. What is the difference then all the other guides out there? Most other guides fail to mention this portion of the installation process:  You will need to activate the extension by editting your php.ini and add: [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on PHP, cURL, HTTP PUT, SSL and Basic Authentication by Christopher Vrooman</title>
		<link>http://www.jellyandcustard.com/2006/01/02/php-curl-http-put-ssl-and-basic-authentication/#comment-27312</link>
		<pubDate>Mon, 17 Mar 2008 23:15:28 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/01/02/php-curl-http-put-ssl-and-basic-authentication/#comment-27312</guid>
					<description>Maybe a dumb question, but let's say I want to send a cURL encoded username:password to my server. How do I then retrieve that information so I can verify it?

  I've seen a hundred tutorials on how to send information the username and password via cURL, but not one on how to deal with that from the server side.

  I tried var_dump'ing $GLOBALS and the information isn't in any of PHP's superglobal arrays. Any clues on how to receive the information that cURL is sending?</description>
		<content:encoded><![CDATA[<p>Maybe a dumb question, but let&#039;s say I want to send a cURL encoded username:password to my server. How do I then retrieve that information so I can verify it?</p>
<p>  I&#039;ve seen a hundred tutorials on how to send information the username and password via cURL, but not one on how to deal with that from the server side.</p>
<p>  I tried var_dump&#039;ing $GLOBALS and the information isn&#039;t in any of PHP&#039;s superglobal arrays. Any clues on how to receive the information that cURL is sending?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using DirectoryIterator to List Files in PHP by Luke</title>
		<link>http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/#comment-27207</link>
		<pubDate>Sat, 15 Mar 2008 21:21:13 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/#comment-27207</guid>
					<description>When is that RecursiveDirectoryIterator article coming?</description>
		<content:encoded><![CDATA[<p>When is that RecursiveDirectoryIterator article coming?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Regular Expressions in PHP by Jerry</title>
		<link>http://www.jellyandcustard.com/2006/06/13/regular-expressions-in-php/#comment-27158</link>
		<pubDate>Sat, 15 Mar 2008 04:35:21 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/06/13/regular-expressions-in-php/#comment-27158</guid>
					<description>Great post on regex.  Thanks!</description>
		<content:encoded><![CDATA[<p>Great post on regex.  Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Retrieve valid entries for a MySQL ENUM/SET column by Passerby</title>
		<link>http://www.jellyandcustard.com/2005/11/23/retrieve-valid-entries-for-a-mysql-enumset-column/#comment-26768</link>
		<pubDate>Wed, 05 Mar 2008 15:46:11 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2005/11/23/retrieve-valid-entries-for-a-mysql-enumset-column/#comment-26768</guid>
					<description>None of the solutions suggest prior to this post have worked for me, so I came up with this:

preg_replace(&quot;/'\)$/&quot;, '', preg_replace(&quot;/^(enum&amp;#124;set)\('/&quot;, '', $fields))

Note: I'm using PHP 5.2.0 with mysqli functions

This function is a great idea though.  Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>None of the solutions suggest prior to this post have worked for me, so I came up with this:</p>
<p>preg_replace(&#034;/&#039;)$/&#034;, &#039;&#039;, preg_replace(&#034;/^(enum|set)(&#039;/&#034;, &#039;&#039;, $fields))</p>
<p>Note: I&#039;m using PHP 5.2.0 with mysqli functions</p>
<p>This function is a great idea though.  Thanks for sharing.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Phone Numbers: Input, Storage and Formatting by Chris Pink</title>
		<link>http://www.jellyandcustard.com/2006/03/11/phone-numbers-input-storage-and-formatting/#comment-26503</link>
		<pubDate>Thu, 28 Feb 2008 18:41:11 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/03/11/phone-numbers-input-storage-and-formatting/#comment-26503</guid>
					<description>You missed the backslash in the preg_replace line, should read;

$phone = preg_replace(&quot;/[^\d]/&quot;,'',$phone);

I consider it a triumph i realised this (eventually)</description>
		<content:encoded><![CDATA[<p>You missed the backslash in the preg_replace line, should read;</p>
<p>$phone = preg_replace(&#034;/[^d]/&#034;,'&#039;,$phone);</p>
<p>I consider it a triumph i realised this (eventually)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using DirectoryIterator to List Files in PHP by jon</title>
		<link>http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/#comment-25939</link>
		<pubDate>Mon, 18 Feb 2008 23:08:27 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/18/using-directoryiterator-to-list-files-in-php/#comment-25939</guid>
					<description>What if I want the directories in a directory? Does DirectoryIterator only return the files?</description>
		<content:encoded><![CDATA[<p>What if I want the directories in a directory? Does DirectoryIterator only return the files?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
