{"id":151,"date":"2016-03-10T14:25:35","date_gmt":"2016-03-10T05:25:35","guid":{"rendered":"http:\/\/fisherman.jp\/23\/?p=151"},"modified":"2016-03-11T09:31:30","modified_gmt":"2016-03-11T00:31:30","slug":"%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89-php%e3%82%b3%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"http:\/\/fisherman.jp\/23\/151","title":{"rendered":"\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 PHP\u30b3\u30fc\u30c9"},"content":{"rendered":"<p>\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 PHP\u30b3\u30fc\u30c9<\/p>\n<p>upload.html<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta charset=&#8221;utf-8&#8243;&gt;<br \/>\n&lt;title&gt;upload.html&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;form method=&#8221;post&#8221; enctype=&#8221;multipart\/form-data&#8221; action=&#8221;upload.php&#8221;&gt;<br \/>\n&lt;input type=&#8221;file&#8221; name=&#8221;upfile&#8221;&gt;<br \/>\n&lt;input type=&#8221;submit&#8221; value=&#8221;Upload&#8221;&gt;<br \/>\n&lt;\/form&gt;<br \/>\n&lt;br&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>upload.php<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta charset=&#8221;utf-8&#8243;&gt;<br \/>\n&lt;title&gt;upload.php&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;?php<br \/>\n$dir= &#8220;.\/upload\/&#8221;;<br \/>\n$file= $_FILES[&#8216;upfile&#8217;][&#8216;name&#8217;];<br \/>\nif(move_uploaded_file($_FILES[&#8216;upfile&#8217;][&#8216;tmp_name&#8217;], $dir.$file)==TRUE){<br \/>\nprint(&#8220;Uploaded (\u6210\u529f)&#8221;.&#8221;&lt;br&gt;&#8221;);<br \/>\nprint(&#8220;$file&#8221;);<br \/>\n}else{<br \/>\nprint(&#8220;Failed (\u5931\u6557)&#8221;.&#8221;&lt;br&gt;&#8221;);<br \/>\nprint($_FILES[&#8216;upfile&#8217;][&#8216;error&#8217;]);<br \/>\n}<br \/>\n?&gt;<br \/>\n&lt;br&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 PHP\u30b3\u30fc\u30c9 upload.html &lt;html&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243;&gt; &lt;title&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-151","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":2,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":156,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/posts\/151\/revisions\/156"}],"wp:attachment":[{"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fisherman.jp\/23\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}