{"id":675,"date":"2011-12-01T02:56:58","date_gmt":"2011-12-01T02:56:58","guid":{"rendered":"http:\/\/www.webputzer.com\/?p=675"},"modified":"2011-12-01T04:39:27","modified_gmt":"2011-12-01T04:39:27","slug":"php-upload-script-for-php-5-3-5-9","status":"publish","type":"post","link":"http:\/\/www.webputzer.com\/?p=675","title":{"rendered":"PHP upload script for php 5.3.5"},"content":{"rendered":"<p>This may work on older versions of PHP &#8211; but I&#8217;ve only tested it on PHP 5.3.5.  This is a <strong>very simple upload script<\/strong> but, as a PHP moron, I had trouble putting this thing together.  Man &#8211; I found a bunch of messed up PHP upload scripts that didn&#8217;t wanna work right while searching Google. I finally cobbled together a couple of scripts and jerked with the main portion of this &#8211; which did not work at all, as I think it was designed for PHP 4.x &#8211; until it finally worked.  I can&#8217;t find a WordPress &#8220;code&#8221; plug-in that works worth a damn so I&#8217;m going to offer a tiny tarball for download which contains the files you need &#8211; even the css file for exactly what you see pictured, below.  When I find a better code plug-in&#8230;well, I&#8217;ll post the code.  This can be edited to allow for the uploading of various file types (the code is very self-explanatory &#8211; even if you&#8217;re no good with PHP).  And chmod the php file to executable and the image upload directory to world writable.   AND &#8211; password protect this thing, wherever you put it (obviously).<br \/>\n<a href=\"http:\/\/www.webputzer.com\/wp-content\/uploads\/2011\/12\/upload_script.tar\"><b>Download the script<\/b><\/a><P><br \/>\n<strong>Here&#8217;s what it looks like. <\/strong><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.webputzer.com\/wp-content\/uploads\/2011\/12\/up1.gif\"><P><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.webputzer.com\/wp-content\/uploads\/2011\/12\/up2.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This may work on older versions of PHP &#8211; but I&#8217;ve only tested it on PHP 5.3.5. This is a very simple upload script but, as a PHP moron, I had trouble putting this thing together. Man &#8211; I found a bunch of messed up PHP upload scripts that didn&#8217;t wanna work right while searching [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"h5ap_radio_sources":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-675","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=675"}],"version-history":[{"count":0,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/675\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}