{"id":4804,"date":"2013-04-24T23:24:38","date_gmt":"2013-04-24T14:24:38","guid":{"rendered":"http:\/\/blog.pianoman-net.com\/?p=4804"},"modified":"2013-06-30T01:51:19","modified_gmt":"2013-06-29T16:51:19","slug":"php%e3%81%a7win%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e7%b5%82%e4%ba%86%e3%81%95%e3%81%9b%e3%82%8b%e3%83%86%e3%82%b9%e3%83%88%e3%80%82","status":"publish","type":"post","link":"https:\/\/blog.pianoman-net.com\/?p=4804","title":{"rendered":"PHP\u3067Win\u30a2\u30d7\u30ea\u3092\u7d42\u4e86\u3055\u305b\u308b\u30c6\u30b9\u30c8\u3002"},"content":{"rendered":"<p><img loading=\"lazy\" src=\"https:\/\/blog.pianoman-net.com\/wp-content\/uploads\/2006\/06\/movie.png\" alt=\"MOVIE-LOG\" width=\"160\" height=\"120\" class=\"alignright size-full wp-image-2158\" \/><a href=\"https:\/\/blog.pianoman-net.com\/?p=4685\" title=\"DAEMON Tools Lite\u3068XAMPP\u3067HTML\u304b\u3089ISO\u3092\u518d\u751f\u3055\u305b\u308b\u30c6\u30b9\u30c8\u3002\">2013\/04\/16\u306e\u30a8\u30f3\u30c8\u30ea<\/a>\u3084<a href=\"https:\/\/blog.pianoman-net.com\/?p=4771\" title=\"GOM Player\u3068XAMPP\u3067HTML\u304b\u3089\u52d5\u753b\u3092\u518d\u751f\u3055\u305b\u308b\u30c6\u30b9\u30c8\u3002\">2013\/04\/17\u306e\u30a8\u30f3\u30c8\u30ea<\/a>\u3067\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e<br \/>\n\u8d77\u52d5\u306b\u3064\u3044\u3066\u8a18\u8ff0\u3057\u307e\u3057\u305f\u304c\u3001\u5b9f\u88c5\u3057\u3066\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001<br \/>\n\u3042\u308b\u554f\u984c\u306b\u6c17\u4ed8\u304d\u307e\u3057\u3066\u3002<\/p>\n<p>\u5b9f\u9a13\u3067\u306favi\u3084mp4\u7b49\u306e\u52d5\u753b\u306f\u300cGOM Player\u300d\u3067\u3001DVD\uff08ISO\u30d5\u30a1\u30a4\u30eb\uff09\u306f<br \/>\nDAEMON Tools Lite\u306b\u30de\u30a6\u30f3\u30c8\u5f8cPower DVD\u3067\u95b2\u89a7\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001<br \/>\nDVD\u3070\u304b\u308a\u82e5\u3057\u304f\u306f\u52d5\u753b\u3070\u304b\u308a\uff08\u3064\u307e\u308a\u540c\u3058\u30d7\u30ec\u30a4\u30e4\u30fc\u3092\u4f7f\u3046\u3082\u306e\uff09\u3092<br \/>\n\u89b3\u3066\u3044\u308b\u5206\u306b\u306f\u554f\u984c\u306a\u3044\u3082\u306e\u306e\u3001\u4f8b\u3048\u3070\u52d5\u753b\u3092\u518d\u751f\u3057\u305f\u304c\u9014\u4e2d\u3067<br \/>\nDVD\u3092\u89b3\u3088\u3046\u3068\u3059\u308b\u3068\u3001GOM Player\u304c\u8d77\u52d5\u3057\u305f\u307e\u307eDVD\u304c\u518d\u751f\u3057\u3066<br \/>\n\u3057\u307e\u3046\u8a33\u3067\u3057\u3066\u3002\u3053\u308c\u306f\u3001\u305b\u3081\u3066\u505c\u6b62\u3059\u308b\u30dc\u30bf\u30f3\u304c\u6b32\u3057\u3044\u306a\u2026\u3068<br \/>\n\u3061\u3087\u3063\u3068\u8abf\u3079\u3066\u307f\u305f\u3089\u3001PHP\u306e\u95a2\u6570\u306bwin32_ps_list_procs\u306a\u308b\u3082\u306e\u304c<br \/>\n\u3042\u308b\u306e\u3092\u767a\u898b\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n&nbsp;<br \/>\n<!--more--><br \/>\n&nbsp;<br \/>\n<a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=25P4W8+DP0GQ+1UTA+O0741\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img loading=\"lazy\" border=\"0\" width=\"468\" height=\"60\" alt=\"\" src=\"https:\/\/www29.a8.net\/svt\/bgt?aid=130503176023&#038;wid=002&#038;eno=01&#038;mid=s00000008659004032000&#038;mc=1\"><\/a><br \/>\n<img loading=\"lazy\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www16.a8.net\/0.gif?a8mat=25P4W8+DP0GQ+1UTA+O0741\" alt=\"\"><br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n<strong>\u3010\u4e0b\u3054\u3057\u3089\u3048\u3011<\/strong><br \/>\n\u307e\u305a\u3001php_win32ps\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\u8abf\u3089\u3079\u3066\u3044\u305f\u3089\u3001<a href=\"https:\/\/pecl4win.php.net\/\" title=\"pecl4win\" target=\"_blank\" rel=\"noopener\">pecl4win<\/a>\u304b\u3089win32_ps_list_procs\u3092<br \/>\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u2026\u3068\u66f8\u3044\u3066\u3042\u308b\u30b5\u30a4\u30c8\u304c\u591a\u304b\u3063\u305f\u306e\u3060\u304c\u3001\u30b5\u30fc\u30d0\u30c0\u30a6\u30f3\u3057\u3066\u3044\u308b\u306e\u304b<br \/>\n\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305a\u3002\u6539\u3081\u3066\u81ea\u5206\u306e\u74b0\u5883\uff08C:\\xampp\\php\\ext\\\u4e0b\uff09\u3092\u307f\u3066\u307f\u305f\u3089\u3001<br \/>\nwin\u7248XAMPP\u3092\u5165\u308c\u305f\u304b\u3089\u304b\u65e2\u306b\u300cphp_win32ps.dll\u300d\u304c\u5b58\u5728\u3057\u3066\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b<br \/>\n\u518d\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u300cC:\\xampp\\php\\php.ini\u300d\u306e\u4e2d\u306b\u3042\u308b\u300c;extension=php_win32ps.dll\u300d\u3092\u63a2\u3057\u3066<br \/>\n\u6587\u982d\u306e\u300c;\u300d\u3092\u524a\u9664\u5f8c\u3001apache\u3092\u518d\u8d77\u52d5\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n<strong>\u3010\u4f5c\u308a\u65b9\u3011<\/strong><\/p>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001\u4eca\u56de\u306favi\u3084mp4\u7b49\u306e\u52d5\u753b\u306fGOM Player\u3092\u3001DVD\u306fPower DVD\u3092\u4f7f\u3063\u3066<br \/>\n\u95b2\u89a7\u3057\u3066\u3044\u308b\u524d\u63d0\u3067\u8aac\u660e\u3057\u307e\u3059\u3002\u305d\u306e\u4ed6\u306e\u524d\u63d0\u6761\u4ef6\u3084\u74b0\u5883\u7b49\u306f\u3001<a href=\"https:\/\/blog.pianoman-net.com\/?p=4685\" title=\"DAEMON Tools Lite\u3068XAMPP\u3067HTML\u304b\u3089ISO\u3092\u518d\u751f\u3055\u305b\u308b\u30c6\u30b9\u30c8\u3002\">2013\/04\/16\u306e\u30a8\u30f3\u30c8\u30ea<\/a>\u3084<br \/>\n<a href=\"https:\/\/blog.pianoman-net.com\/?p=4771\" title=\"GOM Player\u3068XAMPP\u3067HTML\u304b\u3089\u52d5\u753b\u3092\u518d\u751f\u3055\u305b\u308b\u30c6\u30b9\u30c8\u3002\">2013\/04\/17\u306e\u30a8\u30f3\u30c8\u30ea<\/a>\u3068\u540c\u3058\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cC:\\xampp\\htdocs\\localmenu\\\u300d\u306e\u4e0b\u306b\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\uff08\u5f15\u6570\u304c\u5165\u3063\u3066\u306a\u304b\u3063\u305f\u308a\u30011or2\u4ee5\u5916\u304c\u5165\u3063\u3066\u305f\u5834\u5408\u306f\u7121\u8a00\u3067\u7d42\u308f\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001<br \/>\n\u3000\u305d\u308c\u304c\u5acc\u306a\u65b9\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u306a\u308a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<p>\u4f5c\u6210\u30d5\u30a1\u30a4\u30eb\uff1amovieStop.php<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n\tif(isset($_GET['mode'])) {\r\n\t\tswitch ( $_GET['mode'] ) {\r\n\t\t\tcase 1:\r\n\t\t\t\t$processName = 'PowerDVD.exe';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\t$processName = 'GOM.exe';\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\texit;\r\n\t\t}\r\n\t\t@$processList = win32_ps_list_procs();\r\n\t\tforeach ($processList as $processArray) {\r\n\t\t\t$pid = $processArray['pid'];\r\n\t\t\tif (basename($processArray['exe']) == $processName) {\r\n\t\t\t\t`taskkill \/f \/PID $pid 2&gt;&amp;1`;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n?&gt;\r\n<\/pre>\n<p>\u3042\u3068\u306f\u3001\u30e1\u30cb\u30e5\u30fc\u7528\u306eHTML\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n<strong>\u30fbPower DVD\u3092\u505c\u6b62\u3055\u305b\u308b\u30dc\u30bf\u30f3\u3092\u8a2d\u7f6e\u3059\u308b\u5834\u5408<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;.\/movieStop.php?mode=1&quot; target=&quot;_blank&quot;&gt;Power DVD \u505c\u6b62&lt;\/a&gt;\r\n<\/pre>\n<p><strong>\u30fbGOM Player\u3092\u505c\u6b62\u3055\u305b\u308b\u30dc\u30bf\u30f3\u3092\u8a2d\u7f6e\u3059\u308b\u5834\u5408<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;.\/movieStop.php?mode=2&quot; target=&quot;_blank&quot;&gt;GOM Player \u505c\u6b62&lt;\/a&gt;\r\n<\/pre>\n<p>&nbsp;<br \/>\n\u7d30\u541b\u304b\u3089\u3082\u30c4\u30c3\u30b3\u30df\u304c\u5165\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4f55\u3060\u304b\u3082\u3046\u30ea\u30e2\u30b3\u30f3\u307f\u305f\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\uff1b<br \/>\n&nbsp;<\/p>\n<blockquote><p>\u3010\u53c2\u8003\u30b5\u30a4\u30c8\u3011<br \/>\n<a href=\"https:\/\/www.php.net\/manual\/ja\/function.win32-ps-list-procs.php\" title=\"PHP Manual - win32_ps_list_procs\" target=\"_blank\" rel=\"noopener\">\u300bPHP Manual &#8211; win32_ps_list_procs<\/a><br \/>\n<a href=\"https:\/\/manual.xwd.jp\/ref.win32ps.html\" title=\"PHP \u30de\u30cb\u30e5\u30a2\u30eb - win32ps \u95a2\u6570\" target=\"_blank\" rel=\"noopener\">\u300bPHP \u30de\u30cb\u30e5\u30a2\u30eb &#8211; win32ps \u95a2\u6570<\/a><br \/>\n<a href=\"https:\/\/www.phpwelt.net\/handbuecher\/japanese\/ref.win32ps.html\" title=\"PHP WELT.NET - win32ps\u95a2\u6570\" target=\"_blank\" rel=\"noopener\">\u300bPHP WELT.NET &#8211; win32ps\u95a2\u6570<\/a> <\/p><\/blockquote>\n<p>&nbsp;<br \/>\n&nbsp;<br \/>\n<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https:\/\/fpdownload.macromedia.com\/get\/flashplayer\/current\/swflash.cab\" id=\"Player_7b6b86da-70ba-407d-a9a8-9bd17f3902ec\"  WIDTH=\"500px\" HEIGHT=\"175px\"> <PARAM NAME=\"movie\" VALUE=\"https:\/\/ws.amazon.co.jp\/widgets\/q?rt=tf_cw&#038;ServiceVersion=20070822&#038;MarketPlace=JP&#038;ID=V20070822%2FJP%2Fmelodiesofpia-22%2F8010%2F7b6b86da-70ba-407d-a9a8-9bd17f3902ec&#038;Operation=GetDisplayTemplate\"><PARAM NAME=\"quality\" VALUE=\"high\"><PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\"><PARAM NAME=\"allowscriptaccess\" VALUE=\"always\"><embed src=\"https:\/\/ws.amazon.co.jp\/widgets\/q?rt=tf_cw&#038;ServiceVersion=20070822&#038;MarketPlace=JP&#038;ID=V20070822%2FJP%2Fmelodiesofpia-22%2F8010%2F7b6b86da-70ba-407d-a9a8-9bd17f3902ec&#038;Operation=GetDisplayTemplate\" id=\"Player_7b6b86da-70ba-407d-a9a8-9bd17f3902ec\" quality=\"high\" bgcolor=\"#ffffff\" name=\"Player_7b6b86da-70ba-407d-a9a8-9bd17f3902ec\" allowscriptaccess=\"always\"  type=\"application\/x-shockwave-flash\" align=\"middle\" height=\"175px\" width=\"500px\"><\/embed><\/OBJECT> <NOSCRIPT><A HREF=\"https:\/\/ws.amazon.co.jp\/widgets\/q?rt=tf_cw&#038;ServiceVersion=20070822&#038;MarketPlace=JP&#038;ID=V20070822%2FJP%2Fmelodiesofpia-22%2F8010%2F7b6b86da-70ba-407d-a9a8-9bd17f3902ec&#038;Operation=NoScript\">Amazon.co.jp \u30a6\u30a3\u30b8\u30a7\u30c3\u30c8<\/A><\/NOSCRIPT><br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2013\/04\/16\u306e\u30a8\u30f3\u30c8\u30ea\u30842013\/04\/17\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e \u8d77\u52d5\u306b\u3064\u3044\u3066\u8a18\u8ff0\u3057\u307e\u3057\u305f\u304c\u3001\u5b9f\u88c5\u3057\u3066\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001 \u3042\u308b\u554f\u984c\u306b\u6c17\u4ed8\u304d\u307e\u3057\u3066\u3002 \u5b9f\u9a13\u3067\u306favi\u3084mp4\u7b49\u306e\u52d5\u753b\u306f\u300cGOM Player\u300d\u3067\u3001DVD\uff08ISO\u30d5\u30a1\u30a4\u30eb\uff09\u306f DAEMON Tools Lite\u306b\u30de\u30a6\u30f3\u30c8\u5f8cPower DVD\u3067\u95b2\u89a7\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001 DVD\u3070\u304b\u308a\u82e5\u3057\u304f\u306f\u52d5\u753b\u3070\u304b\u308a\uff08\u3064\u307e\u308a\u540c\u3058\u30d7\u30ec\u30a4\u30e4\u30fc\u3092\u4f7f\u3046\u3082 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2158,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,8,5],"tags":[533,535,532,540,539,541,530],"_links":{"self":[{"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/posts\/4804"}],"collection":[{"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4804"}],"version-history":[{"count":24,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/posts\/4804\/revisions"}],"predecessor-version":[{"id":4910,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/posts\/4804\/revisions\/4910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=\/wp\/v2\/media\/2158"}],"wp:attachment":[{"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pianoman-net.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}