{"id":1732,"date":"2012-03-11T02:49:08","date_gmt":"2012-03-11T02:49:08","guid":{"rendered":"http:\/\/www.webputzer.com\/?p=1732"},"modified":"2014-01-07T13:51:46","modified_gmt":"2014-01-07T13:51:46","slug":"stupidly-simple-php-upload-script","status":"publish","type":"post","link":"http:\/\/www.webputzer.com\/?p=1732","title":{"rendered":"Stupidly simple PHP upload script"},"content":{"rendered":"<p>I&#8217;m old and tired &#8211; I don&#8217;t feel like writin&#8217; a book, here.  I needed something that did this and, well, I couldn&#8217;t anything.  Just download this zip file, unarchive the rascal, and follow the directions &#8211; which are really, really, simple.  This will allow you to upload files to a web server with little or no headache. The upload directory had better be protected by an .htaccess file, kids.  Again, instruction are included.  Among other things, files for upload may NOT contain spaces, in their names, and files with names that are identical to names already on your server will be overwritten.  That&#8217;s my story.<\/p>\n<p><a href=\"http:\/\/www.webputzer.com\/wp-content\/uploads\/2012\/03\/upload_script.zip\"><b><u>Download Simple Upload Script<\/u><\/b><\/a><\/p>\n<p>Here&#8217;s a low quality video &#8211; like all of my videos &#8211; that demonstrates this stupid thing:<\/p>\n<p><div id=\"wpfp_d51e0aa9a19cdc045347633bc6332b2e\" data-item=\"{&quot;sources&quot;:[{&quot;src&quot;:&quot;http:\\\/\\\/www.webputzer.com\\\/wp-content\\\/uploads\\\/2012\\\/03\\\/upload.flv&quot;,&quot;type&quot;:&quot;video\\\/mp4&quot;}],&quot;splash&quot;:&quot;http:\\\/\\\/www.webputzer.com\\\/wp-content\\\/uploads\\\/2012\\\/03\\\/simple.png&quot;}\" class=\"flowplayer no-brand is-splash is-paused skin-slim no-svg fp-slim fp-edgy\" data-fv-embed=\"http:\/\/www.webputzer.com\/?p=1732&amp;fv_player_embed=1\" style=\"position:relative; max-width: 540px; max-height: 400px; \" data-ratio=\"0.7407\">\n\t<div class=\"fp-ratio\" style=\"padding-top: 74.07%\"><\/div>\n\t<img decoding=\"async\" class=\"fp-splash\" alt=\"video\" src=\"http:\/\/www.webputzer.com\/wp-content\/uploads\/2012\/03\/simple.png\" style=\"position:absolute;top:0;width:100%\" \/>\n\t<div class=\"fp-ui\"><noscript>Please enable JavaScript<\/noscript><div class=\"fp-play fp-visible\"><svg class=\"fp-play-sharp-fill\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 100 100\"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}<\/style><\/defs><title>play-sharp-fill<\/title><path class=\"fp-color-play\" d=\"M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z\"\/><polygon class=\"controlbutton\" points=\"73.601 50 37.968 70.573 37.968 29.427 73.601 50\" filter=\"url(#f1)\"\/><\/svg><\/div><div class=\"fp-preload\"><b><\/b><b><\/b><b><\/b><b><\/b><\/div><\/div>\n<div class='fvp-share-bar'><ul class=\"fvp-sharing\">\r\n    <li><a class=\"sharing-facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http%3A%2F%2Fwww.webputzer.com%2F%3Fp%3D1732\" target=\"_blank\"><\/a><\/li>\r\n    <li><a class=\"sharing-twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?text=Webputzer.com+&url=http%3A%2F%2Fwww.webputzer.com%2F%3Fp%3D1732\" target=\"_blank\"><\/a><\/li>\r\n    <li><a class=\"sharing-email\" href=\"mailto:?body=Check%20out%20the%20amazing%20video%20here%3A%20http%3A%2F%2Fwww.webputzer.com%2F%3Fp%3D1732\" target=\"_blank\"><\/a><\/li><\/ul><div><a class=\"sharing-link\" href=\"http:\/\/www.webputzer.com\/?p=1732\" target=\"_blank\">Link<\/a><\/div><div><label><a class=\"embed-code-toggle\" href=\"#\"><strong>Embed<\/strong><\/a><\/label><\/div><div class=\"embed-code\"><label>Copy and paste this HTML code into your webpage to embed.<\/label><textarea><\/textarea><\/div><\/div>\n<\/div>\n<br \/>\n<P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m old and tired &#8211; I don&#8217;t feel like writin&#8217; a book, here. I needed something that did this and, well, I couldn&#8217;t anything. Just download this zip file, unarchive the rascal, and follow the directions &#8211; which are really, really, simple. This will allow you to upload files to a web server with little [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3879,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"h5ap_radio_sources":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/1732","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=1732"}],"version-history":[{"count":0,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/1732\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/media\/3879"}],"wp:attachment":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1732"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}