<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 17 Jun 2026 09:25:15 +0000</lastBuildDate>
    <item>
      <title>(PHP) PHP Enumeration Constant Reflection - benjaminpearson</title>
      <link>https://snipplr.com/view/23760/php-enumeration-constant-reflection</link>
      <description>&lt;p&gt;Proper enumerations in PHP are hard to come by. This uses a class as a pseudo enumeration. Sometimes you'll want to lookup the string name side of the enum when you have the value (ie, you have "1" and you want the string "Flood").&lt;/p&gt;</description>
      <pubDate>Wed, 25 Nov 2009 22:04:49 UTC</pubDate>
      <guid>https://snipplr.com/view/23760/php-enumeration-constant-reflection</guid>
    </item>
    <item>
      <title>(PHP) PHP HTTP POST images &amp; files - benjaminpearson</title>
      <link>https://snipplr.com/view/23428/php-http-post-images--files</link>
      <description>&lt;p&gt;The following are instructions to "re-post" files that have been already been POSTed to your php script. This can help if you want to have a form (with file upload) that POSTs its data to your own script where the text elements can be handled and then the script POSTs the file for processing/storage on another system.&#13;
&#13;
Basically the key is that you only POST the `$_FILES['tmp_name']` with an "@" symbol prepended.&#13;
&#13;
Spent a good hour trying to figure this out. Thanks to gordon who posted on 08-Sep-2004 10:08 at http://theserverpages.com/php/manual/en/ref.curl.php&lt;/p&gt;</description>
      <pubDate>Thu, 19 Nov 2009 19:46:42 UTC</pubDate>
      <guid>https://snipplr.com/view/23428/php-http-post-images--files</guid>
    </item>
    <item>
      <title>(PHP) Check Ajax in CakePHP - benjaminpearson</title>
      <link>https://snipplr.com/view/16585/check-ajax-in-cakephp</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 02 Jul 2009 11:15:25 UTC</pubDate>
      <guid>https://snipplr.com/view/16585/check-ajax-in-cakephp</guid>
    </item>
  </channel>
</rss>
