{"id":70511,"date":"2025-11-10T03:01:00","date_gmt":"2025-11-09T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=70511"},"modified":"2025-11-09T14:54:21","modified_gmt":"2025-11-09T04:54:21","slug":"drag-and-drop-peers-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/drag-and-drop-peers-primer-tutorial\/","title":{"rendered":"Drag and Drop Peers Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/experimental_peers_drag_and_drop.php\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Drag and Drop Peers Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/experimental_peers_drag_and_drop.gif\" title=\"Drag and Drop Peers Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Drag and Drop Peers Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve decided to gather the Drag and Drop games into a &#8220;peerage&#8221; of web applications so that one central supervisory web application can point the user into the correct direction to find them, or one of them, as per the PHP <a target=\"_blank\" title='PHP glob method information' href='http:\/\/php.net\/manual\/en\/function.glob.php' rel=\"noopener\">glob<\/a> and &#8220;clone&#8221; based &#8230;<\/p>\n<p><code><br \/>\n&lt;?php<br \/>\n\/\/ experimental_peers_drag_and_drop.php<br \/>\n\/\/ RJM Programming<br \/>\n\/\/ November, 2025<br \/>\n\/\/ Make peers of all the experimental drag and drop logic based web applications<br \/>\n<br \/>\n $sofar=\"\";<br \/>\n $listis='';<br \/>\n foreach (glob(dirname(__FILE__) . DIRECTORY_SEPARATOR . '*.php') as $filename) {<br \/>\n   $contis=file_get_contents($filename);<br \/>\n   if (strpos($contis, \"templa\" . \"tegame=file_get_contents('.\/experimental_drag_and_drop.htm\") !== false) {<br \/>\n     if (strpos($filename, \"_new_\") === false && strpos($sofar, str_replace('_','',str_replace($_SERVER['DOCUMENT_ROOT'], '', $filename))) === false) {<br \/>\n     if ($listis == '') {<br \/>\n       $listis.=str_replace($_SERVER['DOCUMENT_ROOT'], '', $filename);<br \/>\n     } else {<br \/>\n       $listis.=',' . str_replace($_SERVER['DOCUMENT_ROOT'], '', $filename);<br \/>\n     }<br \/>\n     $sofar.=str_replace('_','',str_replace($_SERVER['DOCUMENT_ROOT'], '', $filename));<br \/>\n     }<br \/>\n   }<br \/>\n }<br \/>\n $larris=explode(',', $listis);<br \/>\n $htmlis='&lt;html&gt;&lt;head&gt;&lt;title&gt;Experimental Drag and Drop Peers - RJM Programming - November, 2025&lt;\/title&gt;&lt;\/head&gt;&lt;body&gt;&lt;h1&gt;Experimental Drag and Drop Peers&lt;\/h1&gt;&lt;h3&gt;RJM Programming - November, 2025&lt;\/h3&gt;&lt;select onchange=\"if (this.value.length != 0) { window.open(this.value,' . \"'_blank','top=120,left=510,width=940,height=660'\" . '); }\" id=mysel size=' . (3 + sizeof($larris)) . '&gt;&lt;option value=\"\"&gt;Optionally select an Experimental Drag and Drop web application, to try, below ...&lt;\/option&gt;&lt;option value=\"\/HTMLCSS\/chess_game.php\"&gt;Chess game&lt;\/option&gt;&lt;option value=\"\/HTMLCSS\/gradual_reveal_country_game.htm\"&gt;Reveal country game&lt;\/option&gt;&lt;\/select&gt;&lt;\/body&gt;&lt;\/html&gt;';<br \/>\n <br \/>\n if ($listis != '') {<br \/>\n    for ($i=0; $i&lt;sizeof($larris); $i++) {<br \/>\n      $htmlis=str_replace('&lt;\/select&gt;', '&lt;option value=\"' . $larris[$i] . '\"&gt;' . strtoupper(substr(str_replace('_',' ',explode('.', basename($larris[$i]))[0]),0,1)) . substr(str_replace('_',' ',explode('.', basename($larris[$i]))[0]),1) . \"&lt;\/option&gt;&lt;\/select&gt;\", $htmlis);<br \/>\n    }<br \/>\n    echo $htmlis;<br \/>\n }<br \/>\n <br \/>\n?&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; as a <a target=\"_blank\" title='experimental_peers_drag_and_drop.php' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/experimental_peers_drag_and_drop.php_GETME' rel=\"noopener\">proof of concept<\/a> <a target=\"_blank\" title='experimental_peers_drag_and_drop.php' href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/experimental_peers_drag_and_drop.php' rel=\"noopener\">Drag and Drop supervisor<\/a> web application you can also try below &#8230;<\/p>\n<p><iframe style=\"width:100%;height:900px;\" src='\/\/www.rjmprogramming.com.au\/HTMLCSS\/experimental_peers_drag_and_drop.php'><\/iframe><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d70511' onclick='var dv=document.getElementById(\"d70511\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/glob\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d70511' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve decided to gather the Drag and Drop games into a &#8220;peerage&#8221; of web applications so that one central supervisory web application can point the user into the correct direction to find them, or one of them, as per the &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/drag-and-drop-peers-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,33,37],"tags":[2503,2509,2237,364,4385,367,418,1615,652,770,3440,5319,5318,932,997,1035,2056,1222,1319,5317],"class_list":["post-70511","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-software","category-tutorials","tag-clone","tag-cloning","tag-drag","tag-drag-and-drop","tag-drop","tag-dropdown","tag-file","tag-glob","tag-javascript","tag-menu","tag-peer","tag-peerage","tag-peers","tag-php","tag-programming","tag-redirect","tag-suite","tag-supervisor","tag-tutorial","tag-web-applications"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/70511"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=70511"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/70511\/revisions"}],"predecessor-version":[{"id":70516,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/70511\/revisions\/70516"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=70511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=70511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=70511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}