{"id":54243,"date":"2021-12-11T03:01:31","date_gmt":"2021-12-10T17:01:31","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=54243"},"modified":"2021-12-10T16:22:08","modified_gmt":"2021-12-10T06:22:08","slug":"mac-os-mamp-timekeeping-web-application-php-calendar-iframe-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-iframe-tutorial\/","title":{"rendered":"Mac OS MAMP Timekeeping Web Application PHP Calendar Iframe Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Iframe Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeping_iframe_window_open.jpg\" title=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Iframe Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Calendar Iframe Tutorial<\/p><\/div>\n<p>Today we clarify our Timekeeping web application for those users who have followed through, downloading the HTML and PHP to their local web server (we&#8217;re recommending MAMP) client computer, adding to the Windows client work of yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial' href='#mosmamptwaphpcwt'>Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial<\/a>.<\/p>\n<p>In order to do this, not only do we window.open a new window for that local web server Timekeeping web application incarnation, but it is also made to appear within the parent RJM Programming domain incarnation in the form of an HTML iframe element.  Nothing new here, it&#8217;s just that that iframe has been hidden from view up until today, and today <font color=blue>we open it up and tweak its look a little<\/font> &#8230;<\/p>\n<p><code><br \/>\n function windowopen(theone, thetwo) {<br \/>\n   if (!navigator.userAgent.match(\/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile\/i)) {<br \/>\n   var asu=('&' + document.URL.replace(document.URL.split('?')[0],'').replace('?','')).replace(\/^\\&$\/g,'');<br \/>\n   wowowo=window.open('HTTP:\/\/localhost' + lportbit + '\/HTMLCSS\/quarter_hour_timer.html?imgname=' + imgn + asu,'xxlocit');<br \/>\n  <font color=blue> document.getElementById('xxlocit').style.display='block';<br \/>\n   document.getElementById('xxlocit').style.width='100%';<br \/>\n   document.getElementById('xxlocit').style.height='900px';<\/font><br \/>\n   thatone=theone;<br \/>\n   thattwo=thetwo;<br \/>\n   setTimeout(postwo, 4000);<br \/>\n   }<br \/>\n }<br \/>\n<br \/>\n <font color=blue>function bthen() {<br \/>\n   document.getElementById('myh1').style.display='none';<br \/>\n   document.getElementById('myh3').style.display='none';<br \/>\n   document.body.style.backgroundColor='lightblue';<br \/>\n   if (inIframe()) { getOS(''); modus=OSName + ' Client ';  if (document.getElementById('qhspan')) {  if (document.getElementById('qhspan').innerHTML.indexOf(modus) == -1) { document.getElementById('qhspan').innerHTML=modus + document.getElementById('qhspan').innerHTML; } }<br \/>\n  if (document.getElementById('htwoeight')) {  if (document.getElementById('htwoeight').innerHTML.indexOf(modus) == -1) { document.getElementById('htwoeight').innerHTML=modus + document.getElementById('htwoeight').innerHTML; } }<br \/>\n  if (document.getElementById('theight')) {  if (document.getElementById('theight').innerHTML.indexOf(modus) == -1) { document.getElementById('theight').innerHTML=modus + document.getElementById('theight').innerHTML; } }<br \/>\n   }<br \/>\n }<\/font><br \/>\n<br \/>\nif ((location.search.split('imgname=')[1] ? (decodeURIComponent(location.search.split('imgname=')[1]).split('&')[0]) : '')) {<br \/>\n   if (!navigator.userAgent.match(\/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile\/i)) {<br \/>\n   <font color=blue>setTimeout(bthen, 2000);<\/font><br \/>\n  var asu=((document.URL.replace(document.URL.split('?')[0],'')).replace('?','').replace('&','?') + '?');<br \/>\n  asu=('?' + asu.split('?')[1]).replace(\/^\\?$\/g,'');<br \/>\n  var topl='_blank'; \/\/'_self';<br \/>\n  if (inIframe()) { topl='_blank';  }<br \/>\n  if (document.URL.indexOf('localhost') != -1) { wwwooo=window.open(document.URL.split('?')[0] + asu,topl);  window.opener.document.body.onclick=function() { wwwooo.focus(); } }<br \/>\n  }<br \/>\n}<br \/>\n<\/code><\/p>\n<p>It&#8217;s worth keeping the two incarnations because window.localStorage calendar functionality still works up at the RJM Programming public domain incarnation, whereas with a local web server (perhaps MAMP) incarnation, you could get some screen shot integrations to improve the Timekeeping reporting &#8220;smarts&#8221;.<\/p>\n<p>Feel free to try <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-------GETME\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-------GETME\">quarter_hour_timer.html<\/a> (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">Timekeeping Web Application<\/a> suited to macOS (or Mac OS X) &#8220;screencapture&#8221; command line usage, is helped out by a <font color=brown><a style=color:brown;font-color:brown; target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php-----GETME\">&#8220;mobile platform check&#8221; changed<\/a><\/font> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php-----GETME\">quarter_hour_timer.php<\/a> PHP (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) for you to try out on your MAMP macOS environment, or all showing up at an RJM Programming public domain webpage, in an iframe element, visible now.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-iframe-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosmamptwaphpcwt'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-windows-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeping_windows.jpg\" title=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial<\/p><\/div>\n<p>Did you notice that the &#8220;Timekeeping&#8221; PHP did not have to change for yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial' href='#mosmamptwaphpccit'>Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial<\/a>?<\/p>\n<p>But the PHP is <font color=brown><a style=color:brown;font-color:brown; target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php-----GETME\">the change agent for Windows (client) integration<\/a><\/font> called <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php-----GETME\">quarter_hour_timer.php<\/a> today &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n\/\/ blah top<br \/>\n<font color=brown>$lportbit=\":8888\";<br \/>\n<br \/>\n$user_agent = $_SERVER[\"HTTP_USER_AGENT\"];<br \/>\nfunction getOS() { \/\/ thanks to https:\/\/www.daniweb.com\/programming\/web-development\/threads\/495588\/getting-users-os-info-out-of-server-http-user-agent<br \/>\n    global $user_agent, $lportbit;<br \/>\n    $os_platform    =   \"win Unknown OS Platform\";<br \/>\n    $os_array       =   array(<br \/>\n                            '\/windows nt 10\/i'     =&gt;  'Windows 10',<br \/>\n                            '\/windows nt 6.3\/i'     =&gt;  'Windows 8.1',<br \/>\n                            '\/windows nt 6.2\/i'     =&gt;  'Windows 8',<br \/>\n                            '\/windows nt 6.1\/i'     =&gt;  'Windows 7',<br \/>\n                            '\/windows nt 6.0\/i'     =&gt;  'Windows Vista',<br \/>\n                            '\/windows nt 5.2\/i'     =&gt;  'Windows Server 2003\/XP x64',<br \/>\n                            '\/windows nt 5.1\/i'     =&gt;  'Windows XP',<br \/>\n                            '\/windows xp\/i'         =&gt;  'Windows XP',<br \/>\n                            '\/windows nt 5.0\/i'     =&gt;  'Windows 2000',<br \/>\n                            '\/windows me\/i'         =&gt;  'Windows ME',<br \/>\n                            '\/win98\/i'              =&gt;  'Windows 98',<br \/>\n                            '\/win95\/i'              =&gt;  'Windows 95',<br \/>\n                            '\/win16\/i'              =&gt;  'Windows 3.11',<br \/>\n                            '\/macintosh|mac os x\/i' =&gt;  'Mac OS X',<br \/>\n                            '\/mac_powerpc\/i'        =&gt;  'Mac OS 9',<br \/>\n                            '\/linux\/i'              =&gt;  'Linux',<br \/>\n                            '\/ubuntu\/i'             =&gt;  'Ubuntu',<br \/>\n                            '\/iphone\/i'             =&gt;  'iPhone',<br \/>\n                            '\/ipod\/i'               =&gt;  'iPod',<br \/>\n                            '\/ipad\/i'               =&gt;  'iPad',<br \/>\n                            '\/android\/i'            =&gt;  'Android',<br \/>\n                            '\/blackberry\/i'         =&gt;  'BlackBerry',<br \/>\n                            '\/webos\/i'              =&gt;  'Mobile'<br \/>\n                        );<br \/>\n<br \/>\n    foreach ($os_array as $regex =&gt; $value) {<br \/>\n<br \/>\n        if (preg_match($regex, $user_agent)) {<br \/>\n            $os_platform    =   $value;<br \/>\n        }<br \/>\n<br \/>\n    }<br \/>\n<br \/>\n    return $os_platform;<br \/>\n}<br \/>\n<br \/>\n$callornot=\"call \";<br \/>\n$precmds=\"\";<br \/>\n$impreexe=\"screenCapture\"; \/\/\"import\";<br \/>\n$switches=\"\"; \/\/\" -window root \";<br \/>\nif (substr(strtoupper(getOS()),0,3) === 'WIN') {<br \/>\n  $lportbit=\"\";<br \/>\n  if (file_exists($_SERVER['DOCUMENT_ROOT'] . \"\\\\\" . $impreexe . \".exe\")) {<br \/>\n  $precmds=$_SERVER['DOCUMENT_ROOT'] . \"\\\\\";<br \/>\n  } else {<br \/>\n  foreach (glob(\"C:\\\\Users\\\\*\\\\\" . $impreexe . \".exe\") as $infl) {<br \/>\n  $precmds=explode($impreexe . \".exe\", $infl)[0];<br \/>\n  }<br \/>\n  }<br \/>\n} <\/font><br \/>\n\/\/ blah blah some other PHP functions<br \/>\n<br \/>\n if (isset($_GET['yourta'])) {<br \/>\n \/\/ calendar work<br \/>\n } else if (isset($_GET['myta'])) {<br \/>\n \/\/ embed image metadata<br \/>\n } else if (isset($_POST['myta'])) {<br \/>\n \/\/ parse image metadata<br \/>\n } else <font color=brown>if ($lportbit != \"\")<\/font> {<br \/>\n exec(\"\/usr\/sbin\/screencapture -Cd -tjpg \" . $_SERVER['DOCUMENT_ROOT'] . \"\/screen-`date +\\\"%Y%m%d-%H%M\\\"`.jpg\");<br \/>\n } <font color=brown>else {<br \/>\n if (isset($_GET['tz'])) {<br \/>\n   $tzis=str_replace('+','_',urldecode($_GET['tz']));<br \/>\n   if (strpos($tzis, \"\/\") !== false) { date_default_timezone_set($tzis);   }<br \/>\n }<br \/>\n $dateis = date('Ymd-Hi');<br \/>\n if (file_exists($_SERVER['DOCUMENT_ROOT'] . \"\\\\screenCapture.jpg\")) {<br \/>\n exec('copy ' . '\"' . $_SERVER['DOCUMENT_ROOT'] . \"\\\\screenCapture.jpg\" . '\" \"' . $_SERVER['DOCUMENT_ROOT'] . \"\\\\screen-\" . $dateis . '.jpg\"');<br \/>\n \/\/ exec('erase ' . '\"' . $_SERVER['DOCUMENT_ROOT'] . \"\\\\screenCapture.jpg\" . '\"');<br \/>\n} else {<br \/>\n exec($callornot . '\"' . $precmds . $impreexe . '.exe\" ' . $switches . ' \"' . $_SERVER['DOCUMENT_ROOT'] . \"\\\\screen-\" . $dateis . '.jpg\"');<br \/>\n }<br \/>\n }<\/font><br \/>\n exit;<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; which you may glean has a Windows &#8220;fallback&#8221; position (with that &#8220;copy&#8221; codeline).  Why?  Well, we found a .Net framework &#8220;exe creation via bat&#8221; using <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/ScreenCapture.bat_GETME\" title=\"ScreenCapture.bat\">ScreenCapture.bat<\/a> (thanks to <a target=_blank href='https:\/\/github.com\/npocmaka\/batch.scripts\/blob\/master\/hybrids\/.net\/c\/screenCapture.bat'>this useful link<\/a>) created black screen shots.  Probably a privilege thing or PHP exec thing, but we&#8217;ve opted for the workaround, which is just &#8220;Windows talk&#8221; &#8230;<\/p>\n<ul>\n<li>write Windows batch <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/scapcontinuous.bat_GETME\" title=\"scapcontinuous.bat\">scapcontinuous.bat<\/a> as a continuous fifteen minute user of the .Net Framework (ScreenCapture.exe) derived from above<\/li>\n<li>set up a task via &#8220;Task Schedular&#8221; (please ignore the warts &#8216;n all &#8220;garden path&#8221; schtask ideas in the video below) that has an action &#8220;C:\\MAMP\\htdocs\\scapcontinuous.bat&#8221; and starts when the Windows user logs in and takes (successful) screen shots at 14 and 29 and 44 and 59 minutes (in the hour) times<\/li>\n<\/ul>\n<p>Take a more detailed look at &#8220;warts &#8216;n all&#8221; crab progression towards the Windows (client) solution, below &#8230;<\/p>\n<p><video style=width:90%; type=video\/mp4 controls><source type=video\/mp4 src=\"\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeping_windows.mov\"><\/source><\/video><\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-windows-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Windows Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosmamptwaphpccit'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-ical-integration-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeping_ical.jpg\" title=\"Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial<\/p><\/div>\n<p>Yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial' href='#mosmamptwaphpcct'>Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial<\/a>&#8216;s &#8220;Calendar Past&#8221; improvements don&#8217;t have to be the end of the story regarding &#8220;calendar timings&#8221;.  There is an <a target=_blank title='Apple' href='https:\/\/apple.com'>Apple<\/a> <a target=_blank title='iCal info from Wikipedia' href='https:\/\/en.wikipedia.org\/wiki\/Calendar_(Apple)'>iCal<\/a> standard interfacing format that can drive calendar integrations with many well known online Calendar applications.<\/p>\n<p>You may recall us talking about this with <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/calendar-location-services-integration-tutorial\/' title='Calendar Location Services Integration Tutorial'>Calendar Location Services Integration Tutorial<\/a> and we tweak <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/ics_attachment.php----GETME\" title=\"ics_attachment.php\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/ics_attachment.php----GETME\" title=\"ics_attachment.php\">ics_attachment.php<\/a>  (which we&#8217;d ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;PHP&#8221; subfolder) and its <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/ics_attachment.php\" title=\"Web application standalone\">standalone ical creator<\/a> to better integrate with <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html------GETME\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html------GETME\">quarter_hour_timer.html<\/a> (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">Timekeeping Web Application<\/a> suited to macOS (or Mac OS X) &#8220;screencapture&#8221; command line usage.<\/p>\n<p>This bit of functionality works (interfacing) both with MAMP and with the public RJM Programming domain incarnation of the Timekeeping web application, so that could be interesting.  It can interface via &#8230;<\/p>\n<p><select size=5 id=yics><option value=if>Future Calendar Entries via Iframe<\/option><option value=nw>Future Calendar Entries via Popup<\/option><option value=''>No Future Calendar Entries<\/option><option value=allif>All Calendar Entries via Iframe<\/option><option value=allnw>All Calendar Entries via Popup<\/option><\/select><\/p>\n<p> &#8230; modes of use.  In action, should you create an iCal file this way, the web application will download the resultant .ics file into your Downloads folder and to interface into your default online Calendar application double click that Downloads folder file to complete the Calendar integration &#8230;<\/p>\n<p><code><br \/>\n     function icalpostit(tl, tg) {<br \/>\n  var today = new Date();<br \/>\n  var dd = today.getDate();<br \/>\n  var mm = today.getMonth()+1; \/\/January is 0!<br \/>\n  var yyyy = today.getFullYear();<br \/>\n  var hh = today.getHours();<br \/>\n  var minm = today.getMinutes(); \/\/January is 0!<br \/>\n   \/\/if (icalavailable) { alert('is ' + ('' + yyyy + ('00' + mm).slice(-2) + ('00' + dd).slice(-2) ) + ' &gt;= ' + tl.substring(1)); }<br \/>\n   if ((document.getElementById('yics').value.indexOf('all') != -1 || tl.substring(1) &gt;= ('' + yyyy + ('00' + mm).slice(-2) + ('00' + dd).slice(-2) )) && icalavailable && document.getElementById('yics').value != '') {<br \/>\n   if (document.getElementById('yics').value.indexOf('nw') != -1) {<br \/>\n   icald=tl.substring(1) + ':' + ('00' + hh).slice(-2) + ('00' + minm).slice(-2) + '59';<br \/>\n   icalg=tg;<br \/>\n   if (icalwo != null) { icalwo.close(); icalwo=null;  }<br \/>\n   icalwo=window.open('..\/PHP\/ics_attachment.php','_blank','top=100,left=100,width=740,height=800');<br \/>\n   if (1 == 1) {<br \/>\n   setTimeout(icalw, 3000);<br \/>\n   } else {<br \/>\n   icalwo.document.getElementById('datestart').value=icald;<br \/>\n   icalwo.document.getElementById('dateend').value=icald;<br \/>\n   icalwo.document.getElementById('eventwords').value=icalg.replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)).replace(\/\\&lt;Br\\&gt;\/g, String.fromCharCode(10)).replace(\/\\&lt;BR\\&gt;\/g, String.fromCharCode(10));<br \/>\n   if (document.URL.indexOf('localhost') != -1) {<br \/>\n   var jcald=icalg.replace(\/\\&lt;br\\&gt;\/g, String.fromCharCode(10)).replace(\/\\&lt;Br\\&gt;\/g, String.fromCharCode(10)).replace(\/\\&lt;BR\\&gt;\/g, String.fromCharCode(10)).replace(\/\\&nbsp\\;&gt;\/g, ' ');<br \/>\n   while (jcald.indexOf(String.fromCharCode(10)) != -1) {  jcald=jcald.replace(String.fromCharCode(10),'  ');  }<br \/>\n   icalwo.document.getElementById('title').value=jcald;<br \/>\n   } else {<br \/>\n   icalwo.document.getElementById('title').value='Calendar event at ' + icald;<br \/>\n   }<br \/>\n   icalwo.document.getElementById('description').value='Calendar event at ' + icald;<br \/>\n   icalwo.document.getElementById('address').value=document.URL.split('?')[0].split('#')[0];<br \/>\n   icalwo.document.getElementById('mmdatestart').value=icald.substring(4,6);<br \/>\n   icalwo.document.getElementById('mmdateend').value=icald.substring(4,6);<br \/>\n   icalwo.document.getElementById('dddatestart').value=icald.substring(6,8);<br \/>\n   icalwo.document.getElementById('dddateend').value=icald.substring(6,8);<br \/>\n   icalwo.document.getElementById('ssdatestart').value='59';<br \/>\n   icalwo.document.getElementById('ssdateend').value='59';<br \/>\n   icalwo.document.getElementById('yyyydatestart').value=icald.substring(0,4);<br \/>\n   icalwo.document.getElementById('yyyydateend').value=icald.substring(0,4);<br \/>\n       if ( ('' + today.getTimezoneOffset()).replace('null','').replace('undefined','') != '' ) {<br \/>\n       \/\/alert(('' + eval(eval('' + qd.getTimezoneOffset()) \/ 60.0)).replace('.00','').replace('.0',''));<br \/>\n       icalwo.document.getElementById('tz').value=('' + eval(eval('' + today.getTimezoneOffset()) \/ 60.0)).replace('.00','').replace('.0','');<br \/>\n       }<br \/>\n      \/\/icalwo.document.getElementById('pform').onsubmit=function() { window.opener.document.getElementById('icalstatus').innerHTML=' '; return true;  };<br \/>\n<br \/>\n   }<br \/>\n   } else if (document.getElementById('yics').value.indexOf('if') != -1) {<br \/>\n   icald=tl.substring(1) + ':' + ('00' + hh).slice(-2) + ('00' + minm).slice(-2) + '59';<br \/>\n   icalg=tg;<br \/>\n   document.getElementById('divics').style.display='block';<br \/>\n   document.getElementById('divics').style.width='100%';<br \/>\n   document.getElementById('divics').style.height='800px';<br \/>\n   document.getElementById('icslocit').style.display='block';<br \/>\n   document.getElementById('icslocit').style.width='100%';<br \/>\n   document.getElementById('icslocit').style.height='800px';<br \/>\n   document.getElementById('icslocit').src='..\/PHP\/ics_attachment.php?rand=' + Math.floor(Math.random() * 19876564);<br \/>\n   } else {<br \/>\n   var xzhr = new XMLHttpRequest();<br \/>\n   var xform=new FormData();<br \/>\n   xform.append('icald',tl.substring(1) + ':' + ('00' + hh).slice(-2) + ('00' + minm).slice(-2) + '59');<br \/>\n   xform.append('icalc',tg);<br \/>\n   xzhr.open('post','.\/quarter_hour_timer.php',true);<br \/>\n   xzhr.send(xform);<br \/>\n   }<br \/>\n   }<br \/>\n     }<br \/>\n<\/code><\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-ical-integration-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar iCal Integration Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosmamptwaphpcct'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-contenteditable-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeping_contenteditable.gif\" title=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial<\/p><\/div>\n<p>We&#8217;ve spoken quite a bit in the past about the joys of involving the &#8220;<a target=_blank title='Global contenteditable attribute information from W3schools' href='https:\/\/www.w3schools.com\/tags\/att_global_contenteditable.asp'>contenteditable<\/a><font size=1>=true<\/font>&#8221; attribute for HTML elements that have an &#8220;innerHTML&#8221; (ie. they have a formalized end tag arrangement eg. div, span, p, td, th etcetera) and with today&#8217;s work which extends that started with yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial' href='#mosmamptwaphpcpt'>Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial<\/a> it is the turn of a set of &#8220;p&#8221; elements it helps out today.<\/p>\n<p>The scenario is that yesterday&#8217;s work did not allow for &#8220;orphaned screenshots&#8221; of the past be allowed to be brought back into play to &#8220;annotate them&#8221; and in so doing &#8220;give them a home&#8221;.  This led us to &#8230;<\/p>\n<ul>\n<li>allow for a new &#8220;Infill Earlier Days All Screenshots&#8221; button augment <font color=blue>yesterday<\/font>&#8216;s &#8220;<font color=blue>Infill Earlier Days<\/font> Just Annotated Screenshots&#8221; button &#8230;<\/li>\n<li>the pressing of that new &#8220;Infill Earlier Days All Screenshots&#8221; button causes all screenshot 15 minute entries relevant to the current year be displayed in the calendar &#8230; but then it occurred to us users might want to &#8220;annotate them&#8221; &#8230; but how? &#8230;<\/li>\n<li>in the PHP we <font color=blue>introduced code<\/font> &#8230;<br \/>\n&lt;?php<br \/>\n<code><br \/>\nif (isset($_GET['yourta'])) {<br \/>\n $dru=\"http:\/\/\" . $_SERVER['SERVER_NAME'] . \"\" . str_replace(\"~\",\"\",str_replace(\":443~\",\"\",str_replace(\":80~\",\"\",(\":\" . $_SERVER['SERVER_PORT'] . \"~\")))) . \"\/\";<br \/>\n <font color=blue>$cet=\"\";<br \/>\n if (strlen($_GET['yourta']) != 0) { $cet=\" contenteditable=true onblur=repostit(this); onfocus=wopen(event,false); \"; }<\/font><br \/>\n \/\/ blah blah blah<br \/>\n $ccpre=\"<p<font color=blue>\" . $cet . \"<\/font> onclick=this.innerHTML+=String.fromCharCode(60)+String.fromCharCode(98)+String.fromCharCode(114)+String.fromCharCode(62); style=background-color:orange;background-repeat:no-repeat;background-size:contain;background-image:linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.3)),URL(\" . $dru . str_replace('_','-',str_replace('itd_','screen-',$myf)) . \".jpg\" . \"); onmouseover=wopen(event,true); onmouseout=wopen(event,false);  title=\" . substr(str_replace('td','p',$cali),-4,2) . \":\" . substr(str_replace('td','p',$cali),-2,2) . \"++ id=\" . str_replace('td','p',$cali) . \">\";<br \/>\n \/\/ blah blah blah<br \/>\n}<br \/>\n<\/code><br \/>\n?&gt;<br \/>\n &#8230; to, when an &#8220;orphaned&#8221; screen shot image is happened upon, allows &#8230;\n<\/li>\n<li><a target=_blank title='Global contenteditable attribute information from W3schools' href='https:\/\/www.w3schools.com\/tags\/att_global_contenteditable.asp'>contenteditable<\/a><font size=1>=true<\/font> &#8220;does its stuff&#8221; turning might might have been a pretty unintelligent HTML element into a &#8220;textarea&#8221; type collector of user input, and then that onblur event logic&#8217;s &#8220;midair feeling&#8221; <a target=_blank title='Ajax information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Ajax_%28programming%29'>Ajax<\/a>\/<a target=_blank title='FormData object information' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/FormData'>FormData<\/a> &#8220;recursive feeling&#8221; methodology &#8230;<br \/>\n<code><br \/>\n     function repostit(ih) {<br \/>\n     var ihis=(ih.innerText || ih.contentWindow || ih.contentDocument);<br \/>\n     var pathpart=ih.id;<br \/>\n     if (ihis != '') {<br \/>\n   var xzhr = new XMLHttpRequest();<br \/>\n   var xform=new FormData();<br \/>\n   xform.append('myta',ihis);<br \/>\n   xform.append(pathpart.split('.')[0].replace('ip_','screen-').replace('_','-'),'');<br \/>\n   xzhr.open('post','.\/quarter_hour_timer.php',true);<br \/>\n   xzhr.send(xform);<br \/>\n     }<br \/>\n     }<br \/>\n<\/code><br \/>\n &#8230; which can cement that (newly user entered) annotation into future permanency in the &#8220;Yearly Report Calendar&#8221; section\n<\/li>\n<\/ul>\n<p> &#8230; of <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html------GETME\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html------GETME\">quarter_hour_timer.html<\/a> (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">Timekeeping Web Application<\/a> suited to macOS (or Mac OS X) &#8220;screencapture&#8221; command line usage, is helped out by a <font color=brown><a style=color:brown;font-color:brown; target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php----GETME\">contenteditable=true changed<\/a><\/font> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php----GETME\">quarter_hour_timer.php<\/a> PHP (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) for you to try out on your MAMP macOS environment.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-contenteditable-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Contenteditable Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosmamptwaphpcpt'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-past-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeping_previous.jpg\" title=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial<\/p><\/div>\n<p>If you&#8217;ve been using the Timekeeping web application as of yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial' href='#mosmamptwaphpct'>Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial<\/a> you would have noticed a very &#8230;<\/p>\n<ul>\n<li>first person<\/li>\n<li>present tense<\/li>\n<\/ul>\n<p> &#8230; feel to it all.  Today, we improve on the latter &#8220;restrictiveness&#8221; issue, within yesterday&#8217;s &#8220;Yearly Report Calendar&#8221; new functionality, by looking back into the current calendar year&#8217;s &#8220;past&#8221; with respect to the date of using the web application, whether that be &#8230;<\/p>\n<ul>\n<li>screen captures from days in the current calendar year&#8217;s &#8220;past&#8221;<\/li>\n<li>text entries made and remembered (in window.<a target=_blank title='window.localStorage information from W3schools' href='https:\/\/www.w3schools.com\/jsref\/prop_win_localstorage.asp'>localStorage<\/a>) in the current calendar year&#8217;s &#8220;past&#8221;<\/li>\n<\/ul>\n<p> &#8230; to infill and flesh out that &#8220;Yearly Report Calendar&#8221; better.  This involved bringing over a lot of (the unchanged) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/monthly_chronicler.html---GETME\">monthly_chronicler.html<\/a>&#8216;s Javascript logic into <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-----GETME\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-----GETME\">quarter_hour_timer.html<\/a> (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">Timekeeping Web Application<\/a> suited to macOS (or Mac OS X) &#8220;screencapture&#8221; command line usage, is helped out by a <font color=brown><a style=color:brown;font-color:brown; target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php---GETME\">calendar&#8217;s past integrationally changed<\/a><\/font> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php---GETME\">quarter_hour_timer.php<\/a> PHP (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) for you to try out on your MAMP macOS environment.<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n\/\/ quarter_hour_timer.php<br \/>\n\/\/ RJM Programming<br \/>\n\/\/ December, 2021<br \/>\n<br \/>\n<font color=brown>if (isset($_GET['yourta'])) {<br \/>\n $dru=\"HTTP:\/\/\" . $_SERVER['SERVER_NAME'] . \"\" . str_replace(\"~\",\"\",str_replace(\":443~\",\"\",str_replace(\":80~\",\"\",(\":\" . $_SERVER['SERVER_PORT'] . \"~\")))) . \"\/\";<br \/>\n $contis=str_replace('+',' ',urldecode($_GET['yourta']));<br \/>\n \/\/file_put_contents('xx.xx', $contis);<br \/>\n $htmlis='';<br \/>\n $myf='';<br \/>\n $backi='';<br \/>\n $cali='';<br \/>\n $taback='';<br \/>\n $bcontis=\"'\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $contis)))) . \"'\";<br \/>\n if (substr(($bcontis . '   '),0,3) == \"' + \") {  $bcontis=$bcontis.substr(3); }<br \/>\n if (substr(('   ' . $bcontis),-3,3) == \" + '\") {  $bcontis=$bcontis.substr(0,(-3 + strlen($bcontis))); }<br \/>\n foreach ($_GET as $name=&gt;$val) {<br \/>\n   if ($name != 'yourta') { \/\/ && $val == '') {<br \/>\n   \/\/echo $name;<br \/>\n     $orig=$name;<br \/>\n     $myf=$name;<br \/>\n     for ($imh=12; $imh&gt;=1; $imh--) {<br \/>\n     for ($idd=31; $idd&gt;=1; $idd--) {<br \/>\n     \/\/file_put_contents('xz.xz',$orig . ' Is ' . substr('00' . $imh,-2,2) . substr('00' . $idd,-2,2) . ' less than ' . $val);<br \/>\n     if (substr('00' . $imh,-2,2) . substr('00' . $idd,-2,2) &lt; $val) {<br \/>\n     for ($ihh=0; $ihh&lt;=23; $ihh++) {<br \/>\n     for ($imm=0; $imm&lt;=45; $imm+=15) {<br \/>\n     \/\/if ($ihh != 0 || $imm != 0) {<br \/>\n       $myf=str_replace(\"0101_\", substr('00' . $imh,-2,2) . substr('00' . $idd,-2,2) . \"_\",$orig);<br \/>\n       $myf=str_replace(\"_0000\", \"_\" . substr('00' . $ihh,-2,2) . substr('00' . $imm,-2,2),$myf);<br \/>\n     \/\/}<br \/>\n     $taback=str_replace('-','_',str_replace('itd','tatd',$myf));<br \/>\n     $backi=str_replace('-','_',str_replace('screen-','itd_',$myf));<br \/>\n     $cali=str_replace('-','',str_replace('screen-','td',$myf));<br \/>\n     $idcali=explode('-',explode('_',str_replace('screen-','td',str_replace('itd_','td',$myf)))[0])[0];<br \/>\n<br \/>\n\/\/ Thanks to https:\/\/doc.bccnsoft.com\/docs\/php-docs-7-en\/function.iptcembed.html<br \/>\n<br \/>\n\/\/ Path to jpeg file<br \/>\n$path = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . str_replace('_','-',str_replace('itd_','screen-',$myf)) . '.jpg';<br \/>\n\/\/file_put_contents('x.x',$path);<br \/>\nif (file_exists($path)) {<br \/>\n$capt = \"\";  \/\/ Thanks to https:\/\/www.php.net\/manual\/en\/function.iptcparse.php<br \/>\n$size = getimagesize( $path, $info );<br \/>\nif (isset($info[\"APP13\"])) {<br \/>\n\/\/file_put_contents('xx.xx',$path);<br \/>\n    if ($iptc = iptcparse( $info[\"APP13\"] ) ) {<br \/>\n\/\/file_put_contents('xxx.xxx',$path);<br \/>\n        $capt = str_replace( \"\\000\", \"\", $iptc[\"2#120\"][0] );<br \/>\n\/\/file_put_contents('xxxx.xxxx',$capt);<br \/>\n    }<br \/>\n}<br \/>\n $bcontis=\"\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $capt)))) . \"\";<br \/>\n $ccpre=\"&lt;p onclick=this.innerHTML+=String.fromCharCode(60)+String.fromCharCode(98)+String.fromCharCode(114)+String.fromCharCode(62); style=background-color:orange;background-repeat:no-repeat;background-size:contain;background-image:linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.3)),URL(\" . $dru . str_replace('_','-',str_replace('itd_','screen-',$myf)) . \".jpg\" . \"); onmouseover=wopen(event,true); onmouseout=wopen(event,false);  title=\" . substr(str_replace('td','p',$cali),-4,2) . \":\" . substr(str_replace('td','p',$cali),-2,2) . \"++ id=\" . str_replace('td','p',$cali) . \"&gt;\";<br \/>\n $ccpost=\"&lt;\/p&gt;\";<br \/>\n $ccontis=\"&lt;br&gt;&lt;p style='background-color:orange; title='\" . str_replace('td','p',$cali) . \"' id=\" . str_replace('td','p',$cali) . \"&gt;\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"&lt;br&gt;\", str_replace(\"\\r\\n\", \"&lt;br&gt;\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $capt)))) . \"&lt;\/p&gt;\";<br \/>\n\/\/file_put_contents('xxxxx.xxxxx',$bcontis);<br \/>\n\/\/file_put_contents('xxxxxx.xxxxxx',$taback . ' ... ' . $backi);<br \/>\n\/\/file_put_contents('xxxxxxx.xxxxxxx',\"parent.document.getElementById('\" . $backi . \"').title='\" . $bcontis . \"';  parent.document.getElementById('\" . $taback . \"').value='\" . $bcontis . \"'; \");<br \/>\n<br \/>\n   }<br \/>\n <br \/>\n if ($bcontis != \"''\" && $bcontis != \"\") {<br \/>\n   if ($htmlis == '') {<br \/>\n    $htmlis=\"&lt;html&gt;&lt;head&gt;&lt;script type=text\/javascript&gt; var imois=null, iwo=null; function wopen(event,overvsout) { if (!overvsout) { if (imois == event.target) { imois=null; } return;  } imois=event.target; setTimeout(postwopen, 2000); } function postwopen() { var pois=imois; if (pois.outerHTML.indexOf('URL(') != -1) { window.open(pois.outerHTML.split('URL(')[1].split(')')[0].replace(String.fromCharCode(34),'').replace(String.fromCharCode(34),''),'_blank','top=50,left=50,width=600,height=600');    }  }&lt;\/script&gt;&lt;\/head&gt;&lt;body onload=\\\" var huhg='';  if (parent.document.getElementById('\" . $idcali . \"')) { huhg='\" . $ccpre . $bcontis . $ccpost . \"';  while (huhg.indexOf(String.fromCharCode(10)) != -1) { huhg=huhg.replace(String.fromCharCode(10),'&lt;br&gt;');  } parent.document.getElementById('\" . $idcali . \"').innerHTML+=huhg; }  \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n   } else if (strpos($htmlis, $bcontis) === false) {<br \/>\n    $htmlis=str_replace(\"+=huhg; }\", \"+=huhg; huhg='\" . $ccpre . $bcontis . $ccpost . \"';  while (huhg.indexOf(String.fromCharCode(10)) != -1) { huhg=huhg.replace(String.fromCharCode(10),'&lt;br&gt;');  } parent.document.getElementById('\" . $idcali . \"').innerHTML+=huhg; }\", $htmlis);<br \/>\n   }<br \/>\n }<br \/>\n <br \/>\n }<br \/>\n }<br \/>\n <br \/>\n if ($htmlis != \"\") { echo $htmlis;  }<br \/>\n  <br \/>\n }<br \/>\n }<br \/>\n }<br \/>\n }<br \/>\n }<br \/>\n }<\/font><br \/>\n \/\/ blah else if blah else if blah<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; which you may notice implements a &#8220;long hover&#8221; <a target=_blank href='http:\/\/www.w3schools.com\/jsref\/met_win_open.asp' title='window.open information from w3schools'>window.open<\/a> scenario (using non-mobile platforms) for screenshot images on the calendar by combining the use of &#8230;<\/p>\n<ul>\n<li>global variables &#8230;<br \/>\n<code><br \/>\nvar imois=null;<br \/>\nvar iwo=null;<br \/>\n<\/code>\n<\/li>\n<li>onmouseover event logic &#8230;<br \/>\n<table>\n<tr>\n<th>Call<\/th>\n<\/tr>\n<tr>\n<td> onmouseover=wopen(event,true); <\/td>\n<\/tr>\n<\/table>\n<\/li>\n<li>setTimeout delays &#8230;<br \/>\n<table>\n<tr>\n<th>Called<\/th>\n<\/tr>\n<tr>\n<td>\n<code><br \/>\n  function wopen(event,overvsout) {<br \/>\n    if (!overvsout) {<br \/>\n      if (imois == event.target) {<br \/>\n        imois=null;<br \/>\n      }<br \/>\n      return;<br \/>\n    }<br \/>\n    imois=event.target;<br \/>\n    setTimeout(postwopen, 2000);<br \/>\n  }<br \/>\n<br \/> <br \/>\n  function postwopen() { \/\/pois) {<br \/>\n  if (imois) {<br \/>\n  var pois=imois;<br \/>\n  if (pois.outerHTML.indexOf('URL(') != -1) {<br \/>\n  if (iwo) { iwo.close(); iwo=null; }<br \/>\n  iwo = window.open(pois.outerHTML.split('URL(')[1].split(')')[0].replace(String.fromCharCode(34), '').replace(String.fromCharCode(34), ''), '_blank', 'top=50,left=50,width=600,height=600');<br \/>\n  }<br \/>\n  }<br \/>\n  }<br \/>\n<\/code><\/td>\n<\/tr>\n<\/table>\n<\/li>\n<li>onmouseout event logic &#8230;<br \/>\n<table>\n<tr>\n<th>Call<\/th>\n<\/tr>\n<tr>\n<td> onmouseout=wopen(event,false); <\/td>\n<\/tr>\n<\/table>\n<\/li>\n<\/ul>\n<p> &#8230; so that this logic is not responsible for clobbering the default &#8220;hover&#8221; shows of the &#8220;p&#8221; element &#8220;title&#8221; attribute with the onmouseover event for non-mobile platforms.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-past-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Past Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosmamptwaphpct'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/timekeeper_calendar.gif\" title=\"Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial<\/p><\/div>\n<p>Okay then, yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial' href='#mosmamptwaphpimt'>Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial<\/a> &#8220;image metadata smarts&#8221; puts us in a position to get onto the &#8220;bells and whistles&#8221; side of our Timekeeping (macOS and Mac OS X only at this stage) web application.  We channel the calendar display talents of <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/monthly-chronicler-localstorage-tutorial\/' title='Monthly Chronicler LocalStorage Tutorial'>Monthly Chronicler LocalStorage Tutorial<\/a> in thought and act (its web application is opened in an iframe &#8230; hence our need to ask you to download <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/monthly_chronicler.html---GETME\">monthly_chronicler.html<\/a> to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) to offer a new (<a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/reveal\" title='WordPress reveal posts'>&#8220;reveal&#8221;<\/a>) piece of <a target=_blank title='HTML details tag information from w3schools' href='https:\/\/www.w3schools.com\/tags\/tag_details.asp'>details<\/a>\/<a target=_blank title='HTML summary tag information from w3schools' href='https:\/\/www.w3schools.com\/tags\/tag_details.asp'>summary<\/a> hosted <font color=blue>&#8220;Yearly Report Calendar&#8221;<\/font> functionality.<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n\/\/ quarter_hour_timer.php<br \/>\n\/\/ RJM Programming<br \/>\n\/\/ December, 2021<br \/>\n<br \/>\n\/\/ iptc_make_tag() function by Thies C. Arntzen<br \/>\nfunction iptc_make_tag($rec, $data, $value) {<br \/>\n    $length = strlen($value);<br \/>\n    $retval = chr(0x1C) . chr($rec) . chr($data);<br \/>\n<br \/>\n    if($length &lt; 0x8000)<br \/>\n    {<br \/>\n        $retval .= chr($length &gt;&gt; 8) .  chr($length & 0xFF);<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        $retval .= chr(0x80) .<br \/>\n                   chr(0x04) .<br \/>\n                   chr(($length &gt;&gt; 24) & 0xFF) .<br \/>\n                   chr(($length &gt;&gt; 16) & 0xFF) .<br \/>\n                   chr(($length &gt;&gt; 8) & 0xFF) .<br \/>\n                   chr($length & 0xFF);<br \/>\n    }<br \/>\n<br \/>\n    return $retval . $value;<br \/>\n}<br \/>\n<br \/>\nif (isset($_GET['myta'])) {<br \/>\n <font color=blue>$dru=\"HTTP:\/\/\" . $_SERVER['SERVER_NAME'] . \"\" . str_replace(\"~\",\"\",str_replace(\":443~\",\"\",str_replace(\":80~\",\"\",(\":\" . $_SERVER['SERVER_PORT'] . \"~\")))) . \"\/\";<\/font><br \/>\n $contis=str_replace('+',' ',urldecode($_GET['myta']));<br \/>\n \/\/file_put_contents('xx.xx', $contis);<br \/>\n $myf='';<br \/>\n $backi='';<br \/>\n <font color=blue>$cali='';<\/font><br \/>\n $taback='';<br \/>\n $bcontis=\"'\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $contis)))) . \"'\";<br \/>\n if (substr(($bcontis . '   '),0,3) == \"' + \") {  $bcontis=$bcontis.substr(3); }<br \/>\n if (substr(('   ' . $bcontis),-3,3) == \" + '\") {  $bcontis=$bcontis.substr(0,(-3 + strlen($bcontis))); }<br \/>\n foreach ($_GET as $name=&gt;$val) {<br \/>\n   if ($name != 'myta' && $val == '') {<br \/>\n   \/\/echo $name;<br \/>\n     $myf=$name;<br \/>\n     $taback=str_replace('-','_',str_replace('itd','tatd',$myf));<br \/>\n     $backi=str_replace('-','_',str_replace('screen-','itd_',$myf));<br \/>\n     <font color=blue>$cali=str_replace('-','',str_replace('screen-','td',$myf));<br \/>\n     $idcali=explode('-',explode('_',str_replace('screen-','td',str_replace('itd_','td',$myf)))[0])[0];<\/font><br \/>\n<br \/>\n\/\/ Thanks to https:\/\/doc.bccnsoft.com\/docs\/php-docs-7-en\/function.iptcembed.html<br \/>\n<br \/>\n\/\/ Path to jpeg file<br \/>\n$path = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . str_replace('_','-',str_replace('itd_','screen-',$myf)) . '.jpg';<br \/>\n\/\/file_put_contents('x.x',$path);<br \/>\n<br \/>\n$capt = \"\";  \/\/ Thanks to https:\/\/www.php.net\/manual\/en\/function.iptcparse.php<br \/>\n$size = getimagesize( $path, $info );<br \/>\nif (isset($info[\"APP13\"])) {<br \/>\n\/\/file_put_contents('xx.xx',$path);<br \/>\n    if ($iptc = iptcparse( $info[\"APP13\"] ) ) {<br \/>\n\/\/file_put_contents('xxx.xxx',$path);<br \/>\n        $capt = str_replace( \"\\000\", \"\", $iptc[\"2#120\"][0] );<br \/>\n\/\/file_put_contents('xxxx.xxxx',$capt);<br \/>\n    }<br \/>\n}<br \/>\n $bcontis=\"\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $capt)))) . \"\";<br \/>\n <font color=blue>$ccpre=\"&lt;p onclick=this.innerHTML+=String.fromCharCode(60)+String.fromCharCode(98)+String.fromCharCode(114)+String.fromCharCode(62); style=background-color:orange;background-size:contain;background-image:linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.3)),URL(\" . $dru . str_replace('_','-',str_replace('itd_','screen-',$myf)) . \".jpg\" . \"); title=\" . substr(str_replace('td','p',$cali),-4,2) . \":\" . substr(str_replace('td','p',$cali),-2,2) . \"++ id=\" . str_replace('td','p',$cali) . \"&gt;\";<br \/>\n $ccpost=\"&lt;\/p&gt;\";<br \/>\n $ccontis=\"&lt;br&gt;&lt;p style='background-color:orange; title='\" . str_replace('td','p',$cali) . \"' id=\" . str_replace('td','p',$cali) . \"&gt;\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"&lt;br&gt;\", str_replace(\"\\r\\n\", \"&lt;br&gt;\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $capt)))) . \"&lt;\/p&gt;\";<\/font><br \/>\n\/\/file_put_contents('xxxxx.xxxxx',$bcontis);<br \/>\n\/\/file_put_contents('xxxxxx.xxxxxx',$taback . ' ... ' . $backi);<br \/>\n\/\/file_put_contents('xxxxxxx.xxxxxxx',\"parent.document.getElementById('\" . $backi . \"').title='\" . $bcontis . \"';  parent.document.getElementById('\" . $taback . \"').value='\" . $bcontis . \"'; \");<br \/>\n<br \/>\n   }<br \/>\n if ($bcontis != \"''\") { echo \"&lt;html&gt;&lt;body onload=\\\" parent.document.getElementById('\" . $backi . \"').title='\" . $bcontis . \"';  parent.document.getElementById('\" . $taback . \"').value='\" . $bcontis . \"';   <font color=blue>if (parent.document.getElementById('\" . $idcali . \"')) { var huhg='\" . $ccpre . \"' + parent.document.getElementById('\" . $taback . \"').value + '\" . $ccpost . \"';  while (huhg.indexOf(String.fromCharCode(10)) != -1) { huhg=huhg.replace(String.fromCharCode(10),'&lt;br&gt;');  } parent.document.getElementById('\" . $idcali . \"').innerHTML+=huhg; }<\/font>  \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\"; }<br \/>\n }<br \/>\n } else if (isset($_POST['myta'])) {<br \/>\n <font color=blue>$dru=\"HTTP:\/\/\" . $_SERVER['SERVER_NAME'] . \"\" . str_replace(\"~\",\"\",str_replace(\":443~\",\"\",str_replace(\":80~\",\"\",(\":\" . $_SERVER['SERVER_PORT'] . \"~\")))) . \"\/\";<\/font><br \/>\n $contis=str_replace('+',' ',urldecode($_POST['myta']));<br \/>\n \/\/file_put_contents('xx.xx', $contis);<br \/>\n $myf='';<br \/>\n $backi='';<br \/>\n <font color=blue>$cali='';<\/font><br \/>\n $bcontis=\"'\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $contis)))) . \"'\";<br \/>\n<br \/> <br \/>\n <font color=blue>$ccpre=\"&lt;p onclick=this.innerHTML+=String.fromCharCode(60)+String.fromCharCode(98)+String.fromCharCode(114)+String.fromCharCode(62); style=background-color:orange;background-size:contain;background-image:linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.3)),URL(\" . $dru . str_replace('_','-',str_replace('itd_','screen-',$myf)) . \".jpg\" . \"); title=\" . substr(str_replace('td','p',$cali),-4,2) . \":\" . substr(str_replace('td','p',$cali),-2,2) . \"++ id=\" . str_replace('td','p',$cali) . \"&gt;\";<br \/>\n $ccpost=\"&lt;\/p&gt;\";<br \/>\n $ccontis=\"&lt;br&gt;&lt;p style='background-color:orange; title='\" . str_replace('td','p',$cali) . \"' id=\" . str_replace('td','p',$cali) . \"&gt;\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"&lt;br&gt;\", str_replace(\"\\r\\n\", \"&lt;br&gt;\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $capt)))) . \"&lt;\/p&gt;\";<\/font><br \/>\n<br \/>\n if (substr(($bcontis . '   '),0,3) == \"' + \") {  $bcontis=$bcontis.substr(3); }<br \/>\n if (substr(('   ' . $bcontis),-3,3) == \" + '\") {  $bcontis=$bcontis.substr(0,(-3 + strlen($bcontis))); }<br \/>\n foreach ($_POST as $name=&gt;$val) {<br \/>\n   if ($name != 'myta') {<br \/>\n     $myf=$name;<br \/>\n     $backi=str_replace('-','_',str_replace('screen-','itd_',$myf));<br \/>\n     <font color=blue>$taback=str_replace('tatd','tatd_',substr(str_replace('-','',str_replace('_','',str_replace('itd','tatd',str_replace('screen','tatd',$myf)))),0,12)) . '_' . substr(str_replace('-','',str_replace('_','',str_replace('itd','tatd',str_replace('screen','tatd',$myf)))),-4,4);<br \/>\n     $pback=str_replace('tatd','ip',$taback);<br \/>\n     $cali=str_replace('-','',str_replace('screen-','td',$myf));<br \/>\n     $idcali=explode('-',explode('_',str_replace('screen-','td',str_replace('itd_','td',$myf)))[0])[0];<\/font><br \/>\n<br \/>\n\/\/ Thanks to https:\/\/doc.bccnsoft.com\/docs\/php-docs-7-en\/function.iptcembed.html<br \/>\n<br \/>\n\/\/ Path to jpeg file<br \/>\n$path = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $myf . '.jpg';<br \/>\n<br \/>\n\/\/file_put_contents('x.x', $path);<br \/>\n<br \/>\n\/\/ Set the IPTC tags<br \/>\n$iptc = array(<br \/>\n    '2#120' =&gt; $contis,<br \/>\n    '2#116' =&gt; 'Copyright 2021, RJM Programming'<br \/>\n);<br \/>\n<br \/>\n\/\/ Convert the IPTC tags into binary code<br \/>\n$data = '';<br \/>\n<br \/>\nforeach($iptc as $tag =&gt; $string) {<br \/>\n    $tag = substr($tag, 2);<br \/>\n    $data .= iptc_make_tag(2, $tag, $string);<br \/>\n}<br \/>\n<br \/>\n\/\/ Embed the IPTC data<br \/>\n$content = iptcembed($data, $path);<br \/>\n<br \/>\n\/\/ Write the new image data out to the file.<br \/>\n$fp = fopen($path, \"wb\");<br \/>\nfwrite($fp, $content);<br \/>\nfclose($fp);<br \/>\n<br \/>\n   }<br \/>\n echo \"&lt;html&gt;&lt;body onload=\\\" parent.document.getElementById('\" . $backi . \"').title=\" . $bcontis . \";  <font color=blue> if (parent.document.getElementById('\" . $idcali . \"')) { var huhg='\" . $ccpre . \"' + parent.document.getElementById('\" . $taback . \"').value + '\" . $ccpost . \"';  if (parent.document.getElementById('\" . $pback . \"')) { huhg=parent.document.getElementById('\" . $taback . \"').value; }  while (huhg.indexOf(String.fromCharCode(10)) != -1) { huhg=huhg.replace(String.fromCharCode(10),'&lt;br&gt;');  }    if (parent.document.getElementById('\" . $pback . \"')) {  parent.document.getElementById('\" . $pback . \"').innerHTML=huhg; } else { parent.document.getElementById('\" . $idcali . \"').innerHTML+=huhg; }<\/font> }  \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n }<br \/>\n } else {<br \/>\n exec(\"\/usr\/sbin\/screencapture -Cd -tjpg \/Applications\/MAMP\/htdocs\/screen-`date +\\\"%Y%m%d-%H%M\\\"`.jpg\");<br \/>\n }<br \/>\n exit;<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p>And so, again, <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html----GETME\">our changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html----GETME\">quarter_hour_timer.html<\/a> (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">Timekeeping Web Application<\/a> suited to macOS (or Mac OS X) &#8220;screencapture&#8221; command line usage, is helped out by a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php--GETME\">calendar integrationally changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php--GETME\">quarter_hour_timer.php<\/a> PHP (we ask you to download to <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>&#8216;s $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] &#8220;HTMLCSS&#8221; subfolder) for you to try out on your MAMP macOS environment.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Calendar Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosmamptwaphpimt'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-image-metadata-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screencapture_php_iptc.gif\" title=\"Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS MAMP Timekeeping Web Application PHP Image Metadata Tutorial<\/p><\/div>\n<p>In our opinion, what would make the day before yesterday&#8217;s <a title='Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial' href='#mosmamptwaphpit'>Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial<\/a> &#8220;Timekeeping Web Application&#8221; <i>cooler<\/i> would be to add to the intelligence of the screen capture images, ahead of other data related improvements to come.<\/p>\n<p>We&#8217;ve spoken in the past about <a target=_blank title='Exif information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Exif'>Exif<\/a> in that respect but PHP has Iptc image metadata functions we can call on &#8230;<\/p>\n<ul>\n<li><a target=_blank href='https:\/\/www.php.net\/manual\/en\/function.iptcembed.php'>iptcembed<\/a> to embed new metadata into an existant image from those associated &#8220;caption&#8221; textarea elements we offer<\/li>\n<li><a target=_blank href='https:\/\/www.php.net\/manual\/en\/function.iptcparse.php'>iptcparse<\/a> to extract old metadata from an existant image into those associated &#8220;caption&#8221; textarea elements we offer<\/li>\n<\/ul>\n<p>This metadata can be like a database source we use moving forward on this project, meaning the one image data entity can suffice for both visual and textual usage purposes.<\/p>\n<p>And so <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html---GETME\">our changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html---GETME\">quarter_hour_timer.html<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">Timekeeping Web Application<\/a> suited to macOS (or Mac OS X) &#8220;screencapture&#8221; command line usage, is helped out by a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php-GETME\">much more usefully changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php-GETME\">quarter_hour_timer.php<\/a> PHP &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n\/\/ quarter_hour_timer.php<br \/>\n\/\/ RJM Programming<br \/>\n\/\/ December, 2021<br \/>\n<br \/>\n\/\/ iptc_make_tag() function by Thies C. Arntzen<br \/>\nfunction iptc_make_tag($rec, $data, $value) {<br \/>\n    $length = strlen($value);<br \/>\n    $retval = chr(0x1C) . chr($rec) . chr($data);<br \/>\n<br \/>\n    if($length &lt; 0x8000)<br \/>\n    {<br \/>\n        $retval .= chr($length &gt;&gt; 8) .  chr($length & 0xFF);<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        $retval .= chr(0x80) .<br \/>\n                   chr(0x04) .<br \/>\n                   chr(($length &gt;&gt; 24) & 0xFF) .<br \/>\n                   chr(($length &gt;&gt; 16) & 0xFF) .<br \/>\n                   chr(($length &gt;&gt; 8) & 0xFF) .<br \/>\n                   chr($length & 0xFF);<br \/>\n    }<br \/>\n<br \/>\n    return $retval . $value;<br \/>\n}<br \/>\n<br \/>\nif (isset($_GET['myta'])) {<br \/>\n $contis=str_replace('+',' ',urldecode($_GET['myta']));<br \/>\n \/\/file_put_contents('xx.xx', $contis);<br \/>\n $myf='';<br \/>\n $backi='';<br \/>\n $taback='';<br \/>\n $bcontis=\"'\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $contis)))) . \"'\";<br \/>\n if (substr(($bcontis . '   '),0,3) == \"' + \") {  $bcontis=$bcontis.substr(3); }<br \/>\n if (substr(('   ' . $bcontis),-3,3) == \" + '\") {  $bcontis=$bcontis.substr(0,(-3 + strlen($bcontis))); }<br \/>\n foreach ($_GET as $name=&gt;$val) {<br \/>\n   if ($name != 'myta' && $val == '') {<br \/>\n   \/\/echo $name;<br \/>\n     $myf=$name;<br \/>\n     $taback=str_replace('-','_',str_replace('itd','tatd',$myf));<br \/>\n     $backi=str_replace('-','_',str_replace('screen-','itd_',$myf));<br \/>\n<br \/>\n\/\/ Thanks to https:\/\/doc.bccnsoft.com\/docs\/php-docs-7-en\/function.iptcembed.html<br \/>\n<br \/>\n\/\/ Path to jpeg file<br \/>\n$path = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . str_replace('_','-',str_replace('itd_','screen-',$myf)) . '.jpg';<br \/>\n\/\/file_put_contents('x.x',$path);<br \/>\n<br \/>\n$capt = \"\";  \/\/ Thanks to https:\/\/www.php.net\/manual\/en\/function.iptcparse.php<br \/>\n$size = getimagesize( $path, $info );<br \/>\nif (isset($info[\"APP13\"])) {<br \/>\n\/\/file_put_contents('xx.xx',$path);<br \/>\n    if ($iptc = iptcparse( $info[\"APP13\"] ) ) {<br \/>\n\/\/file_put_contents('xxx.xxx',$path);<br \/>\n        $capt = str_replace( \"\\000\", \"\", $iptc[\"2#120\"][0] );<br \/>\n\/\/file_put_contents('xxxx.xxxx',$capt);<br \/>\n    }<br \/>\n}<br \/>\n $bcontis=\"\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $capt)))) . \"\";<br \/>\n\/\/file_put_contents('xxxxx.xxxxx',$bcontis);<br \/>\n\/\/file_put_contents('xxxxxx.xxxxxx',$taback . ' ... ' . $backi);<br \/>\n\/\/file_put_contents('xxxxxxx.xxxxxxx',\"parent.document.getElementById('\" . $backi . \"').title='\" . $bcontis . \"';  parent.document.getElementById('\" . $taback . \"').value='\" . $bcontis . \"'; \");<br \/>\n<br \/>\n   }<br \/>\n if ($bcontis != \"''\") { echo \"&lt;html&gt;&lt;body onload=\\\" parent.document.getElementById('\" . $backi . \"').title='\" . $bcontis . \"';  parent.document.getElementById('\" . $taback . \"').value='\" . $bcontis . \"'; \\\"&gt;&lt;p&gt;parent.document.getElementById('\" . $backi . \"').title='\" . $bcontis . \"';  parent.document.getElementById('\" . $taback . \"').value='\" . $bcontis . \"';&lt;\/p&gt;&lt;\/body&gt;&lt;\/html&gt;\"; }<br \/>\n }<br \/>\n } else if (isset($_POST['myta'])) {<br \/>\n $contis=str_replace('+',' ',urldecode($_POST['myta']));<br \/>\n \/\/file_put_contents('xx.xx', $contis);<br \/>\n $myf='';<br \/>\n $backi='';<br \/>\n $bcontis=\"'\" . str_replace(chr(34), \"' + String.fromCharCode(34) + '\", str_replace(\"\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"\\r\\n\", \"' + String.fromCharCode(10) + '\", str_replace(\"'\", \"' + String.fromCharCode(39) + '\", $contis)))) . \"'\";<br \/>\n if (substr(($bcontis . '   '),0,3) == \"' + \") {  $bcontis=$bcontis.substr(3); }<br \/>\n if (substr(('   ' . $bcontis),-3,3) == \" + '\") {  $bcontis=$bcontis.substr(0,(-3 + strlen($bcontis))); }<br \/>\n foreach ($_POST as $name=&gt;$val) {<br \/>\n   if ($name != 'myta') {<br \/>\n     $myf=$name;<br \/>\n     $backi=str_replace('-','_',str_replace('screen-','itd_',$myf));<br \/>\n<br \/>\n\/\/ Thanks to https:\/\/doc.bccnsoft.com\/docs\/php-docs-7-en\/function.iptcembed.html<br \/>\n<br \/>\n\/\/ Path to jpeg file<br \/>\n$path = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $myf . '.jpg';<br \/>\n<br \/>\n\/\/file_put_contents('x.x', $path);<br \/>\n<br \/>\n\/\/ Set the IPTC tags<br \/>\n$iptc = array(<br \/>\n    '2#120' =&gt; $contis,<br \/>\n    '2#116' =&gt; 'Copyright 2021, RJM Programming'<br \/>\n);<br \/>\n<br \/>\n\/\/ Convert the IPTC tags into binary code<br \/>\n$data = '';<br \/>\n<br \/>\nforeach($iptc as $tag =&gt; $string) {<br \/>\n    $tag = substr($tag, 2);<br \/>\n    $data .= iptc_make_tag(2, $tag, $string);<br \/>\n}<br \/>\n<br \/>\n\/\/ Embed the IPTC data<br \/>\n$content = iptcembed($data, $path);<br \/>\n<br \/>\n\/\/ Write the new image data out to the file.<br \/>\n$fp = fopen($path, \"wb\");<br \/>\nfwrite($fp, $content);<br \/>\nfclose($fp);<br \/>\n<br \/>\n   }<br \/>\n echo \"&lt;html&gt;&lt;body onload=\\\" parent.document.getElementById('\" . $backi . \"').title=\" . $bcontis . \"; \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n }<br \/>\n } else {<br \/>\n exec(\"\/usr\/sbin\/screencapture -Cd -tjpg \/Applications\/MAMP\/htdocs\/screen-`date +\\\"%Y%m%d-%H%M\\\"`.jpg\");<br \/>\n }<br \/>\n exit;<\/code><br \/>\n?&gt;<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank href='\/\/www.rjmprogramming.com.au\/ITblog\/new-mac-os-mamp-timekeeping-web-application-php-intranet-tutorial\/'>New Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial<\/a> ...<\/p>\n\n\n\n\n\n<hr>\n\n\n\n\n\n<p id='mosmamptwaphpit'>Previous relevant <a target=_blank title='Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-intranet-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial<\/a> is shown below.<\/p>\n\n\n\n[caption id=\"\" align=\"alignnone\" width=\"220\" caption=\"Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial\"]<a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer_php_intranet.gif\" title=\"Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial\"  style=\"float:left;\"   \/><\/a>[\/caption]\n\n\n\n<p>It's \"Intranet\" time again, this time the integration just \"client side\" based, and with a previously client only <a title='Mac OS X MAMP Timekeeping Web Application Email Tutorial' href='#mosxmamptwaet'>Mac OS X MAMP Timekeeping Web Application Email Tutorial<\/a> web application's ...<\/p>\n\n\n\n\n\n<blockquote cite='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-mamp-timekeeping-web-application-email-tutorial\/' style='background-color:#f0f0f0;'>\n\n\n<ul>\n\n\n<li><i>Mac OS X<\/i> operating system +<\/li>\n\n\n\n\n<li>Existance of [\/usr\/sbin\/]<a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> +<\/li>\n\n\n\n\n<li><a target=_blank title='crontab information from computerhope ... thanks' href='http:\/\/www.computerhope.com\/jargon\/c\/cron.htm'><i>crontab<\/i><\/a> active and editable via <i>crontab -e<\/i> +<\/li>\n\n\n\n\n<li>One of ...\n\n\n<ol>\n\n\n<li><a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'><i>MAMP<\/i><\/a> installed to, in our case, <i>\/Applications\/MAMP\/htdocs\/<\/i> (as is mentioned in the relevant <i>crontab<\/i> background task that snapshots the user's screen every quarter hour) that maps to the MAMP web application URL <i>http:\/\/localhost:8888\/<\/i> ... or ...<\/li>\n\n\n\n\n<li><i>crontab<\/i> directory mention that corresponds to a URL call of our web application like for our Google Chrome example (where the <i>directory<\/i> below, used, could be a place of your choosing (that matches what is in your <i>crontab<\/i> task entry)) ...\n<code>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i><font color=blue>HTMLCSS\/<\/font>quarter_hour_timer.html?localplace=\n<\/code>\n... or just, via the web browser's File -&gt; Open File menu ...\n<code>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i><font color=blue>HTMLCSS\/<\/font>quarter_hour_timer.html\n<\/code>\n<img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.gif\"><\/img>\n<\/li>\n\n\n<\/ol>\n\n\n<\/li>\n\n\n<\/ul>\n\n\n<\/blockquote>\n\n\n\n\n\n<p> ... today we're <font color=blue>changing that into<\/font> ...<\/p>\n\n\n\n\n\n<ul>\n\n\n<li><i><font color=blue>mac OS or<\/font> Mac OS X<\/i> operating system +<\/li>\n\n\n\n\n<li>Existance of [\/usr\/sbin\/]<a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> +<\/li>\n\n\n\n\n<li><a target=_blank title='crontab information from computerhope ... thanks' href='http:\/\/www.computerhope.com\/jargon\/c\/cron.htm'><i>crontab<\/i><\/a> <font color=blue>(no longer relied upon)<\/font> active and editable via <i>crontab -e<\/i>  <font color=blue>(replaced by inline calling of new <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.php_GETME\">quarter_hour_timer.php<\/a> (which, as well as HTML below, should be downloaded to your MAMP's $_SERVER['DOCUMENT_ROOT'] \"HTMLCSS\" folder)<\/font>) ...\n<code>\n&lt;?php\n\/\/ quarter_hour_timer.php\n\/\/ RJM Programming\n\/\/ December, 2021\n exec(\"\/usr\/sbin\/screencapture -Cd -tjpg \/Applications\/MAMP\/htdocs\/screen-`date +\\\"%Y%m%d-%H%M\\\"`.jpg\");\n exit;\n?&gt;\n<\/code>\n<\/font> +<\/li>\n\n\n\n\n<li>One of ...\n\n\n<ol>\n\n\n<li><a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'><i>MAMP<\/i><\/a> installed to, in our case, <i>\/Applications\/MAMP\/htdocs\/<\/i> <strike style=color:blue;>(as is mentioned in the relevant <i>crontab<\/i> background task that snapshots the user's screen every quarter hour)<\/strike> that maps to the MAMP web application URL <i>http:\/\/localhost:8888\/<\/i> <font color=blue>(that incarnation called \"Intranet style\" from the public RJM Programming domain URL for <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html--GETME\">quarter_hour_timer.html<\/a> <font color=blue>(and should be downloaded to your MAMP's $_SERVER['DOCUMENT_ROOT'] \"HTMLCSS\" folder)<\/font> which changed to cater for today's rearrangements in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html--GETME\">this way<\/a>)<\/font> ... or ...<\/li>\n\n\n\n\n<li><strike style=color:blue;><i>crontab<\/i><\/strike> <font color=blue>PHP<\/font> directory mention that corresponds to a URL call of our web application like for our Google Chrome example (where the <i>directory<\/i> below, used, could be a place of your choosing (that matches what is in your <i>crontab<\/i> task entry)) ...\n<code>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i><font color=blue>HTMLCSS\/<\/font>quarter_hour_timer.html?localplace=\n<\/code>\n... or just, via the web browser's File -&gt; Open File menu ...\n<code>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i><font color=blue>HTMLCSS\/<\/font>quarter_hour_timer.html\n<\/code>\n<img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer_php_intranet.gif\"><\/img>\n<\/li>\n\n\n<\/ol>\n\n\n<\/li>\n\n\n<\/ul>\n\n\n\n\n\n<p> ... for your \"Intranet makeover\"!  Today's work in that vein shows a (Javascript) client only approach ...<\/p>\n\n\n  \n<code>\n var lportbit=getOS(':8888');\n var imgn='imgm' + Math.floor(Math.random() * 1987656453) + '.gif';\n var tryit='HTTP:\/\/localhost' + lportbit + '\/' + imgn; \n var thatone='', thattwo='';\n var wowowo=null;\n<br \/>\n function getOS(inlp) {\n var OSName = \"Win Unknown\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 11.0\")!= -1) OSName=\"Windows 11\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 10.0\")!= -1) OSName=\"Windows 10\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 6.3\") != -1) OSName=\"Windows 8.1\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 6.2\") != -1) OSName=\"Windows 8\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 6.1\") != -1) OSName=\"Windows 7\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 6.0\") != -1) OSName=\"Windows Vista\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 5.1\") != -1) OSName=\"Windows XP\";\n if (window.navigator.userAgent.indexOf(\"Windows NT 5.0\") != -1) OSName=\"Windows 2000\";\n if (window.navigator.userAgent.indexOf(\"Mac\")            != -1) OSName=\"Mac\/iOS\";\n if (window.navigator.userAgent.indexOf(\"X11\")            != -1) OSName=\"UNIX\";\n if (window.navigator.userAgent.indexOf(\"Linux\")          != -1) OSName=\"Linux\";\n if (OSName.substring(0,3).toLowerCase() == 'win') { inlp='';  }\n return inlp;\n }\n <br \/> \n function calledlater() {\n            if (tryit != '') {\n            if (!inIframe() && document.URL.indexOf('https:') == 0 && document.URL.indexOf('localhost') == -1 && navigator.userAgent.toLowerCase().indexOf('safari\/') &gt; -1) {\n              location.href=document.URL.replace('https:','http:');\n            }\n            }\n }\n<br \/>\n function windowopen(theone, thetwo) {\n   var asu=('&' + document.URL.replace(document.URL.split('?')[0],'').replace('?','')).replace(\/^\\&$\/g,'');  \n   wowowo=window.open('HTTP:\/\/localhost' + lportbit + '\/HTMLCSS\/quarter_hour_timer.html?imgname=' + imgn + asu,'xxlocit');\n   thatone=theone;\n   thattwo=thetwo;\n   setTimeout(postwo, 4000);\n }\n<br \/> \n function postwo() {\n   if (tryit.trim() == tryit) {\n     return null;\n   } \n   wowo=window.open(thatone, thattwo);\n }\n<br \/> \n function inIframe () {  \/\/ thanks to https:\/\/stackoverflow.com\/questions\/326069\/how-to-identify-if-a-webpage-is-being-loaded-inside-an-iframe-or-directly-into-t\n    try {\n        return window.self !== window.top;\n    } catch (e) {\n        return true;\n    }\n }\n<br \/>  \n function mamptry() { \n   if (!inIframe()) { if (document.URL.indexOf('httJUNKp:') == 0) { wowo=window.open('HTTP:\/localhost' + lportbit + '\/HTMLCSS\/quarter_hour_timer.html','mamptry'); document.getElementById('mamptry').style.display='block'; } else if (document.URL.indexOf('localhost') == -1) { windowopen('HTTP:\/localhost' + lportbit + '\/HTMLCSS\/quarter_hour_timer.html','blank');  } }\n }\n<br \/>\nif ((location.search.split('imgname=')[1] ? (decodeURIComponent(location.search.split('imgname=')[1]).split('&')[0]) : '')) {\n  var asu=((document.URL.replace(document.URL.split('?')[0],'')).replace('?','').replace('&','?') + '?');  \n  asu=('?' + asu.split('?')[1]).replace(\/^\\?$\/g,''); \n  if (document.URL.indexOf('localhost') != -1) { window.open(document.URL.split('?')[0] + asu,'_blank'); }\n}\n<br \/>\n function forceissue() {\n   var d1 = new Date();\n   if (document.URL.indexOf('localhost') != -1 && d1.toUTCString().replace(':15:',':00:').replace(':30:',':00:').replace(':45:',':00:').replace(':07 ',':08 ').replace(':09 ',':08 ').indexOf(':00:08 ') != -1) {\n   document.getElementById('xxxxlocit').src=document.URL.replace('.html','.php').replace('.htm','.php').split('?')[0] + '?rand=' + Math.floor(Math.random() * 1987656432);\n   } else {\n   document.getElementById('xxxxlocit').src=document.URL.replace('.html','.php').replace('.htm','.php').split('?')[0] + '?rand=' + Math.floor(Math.random() * 1987656432);\n   normok=false;\n   fillinmywork();\n   }\n }\n<br \/>\n function lookforfifteen() {\n   var d1 = new Date();\n   if (document.URL.indexOf('localhost') != -1 && d1.toUTCString().replace(':15:',':00:').replace(':30:',':00:').replace(':45:',':00:').replace(':07 ',':08 ').replace(':09 ',':08 ').indexOf(':00:08 ') != -1) {\n   forceissue(); \/\/ document.getElementById('xxxxlocit').src=document.URL.replace('.html','.php').replace('.htm','.php').split('?')[0] + '?rand=' + Math.floor(Math.random() * 1987656432);\n   setTimeout(lookforfifteen, 5000);\n   } else {\n   setTimeout(lookforfifteen, 1000);\n   }\n }\n<br \/> \n setTimeout(calledlater, 2000);\n setTimeout(lookforfifteen, 1000);\n<\/code>\n\n\n<!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-intranet-tutorial\/'>Mac OS MAMP Timekeeping Web Application PHP Intranet Tutorial<\/a>.<\/p-->\n<hr>\n<p id='mosxmamptwaet'>Previous relevant <a target=_blank title='Mac OS X MAMP Timekeeping Web Application Email Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-mamp-timekeeping-web-application-email-tutorial\/'>Mac OS X MAMP Timekeeping Web Application Email Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS X MAMP Timekeeping Web Application Email Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer_email.jpg\" title=\"Mac OS X MAMP Timekeeping Web Application Email Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS X MAMP Timekeeping Web Application Email Tutorial<\/p><\/div>\n<p>The practicalities of yesterday&#8217;s (<a title='Mac OS X MAMP Timekeeping Web Application Primer Tutorial' href='#moxmtwapt'>Mac OS X MAMP Timekeeping Web Application Primer Tutorial<\/a>) timekeeping Mac OS X Web Application, left as they are, would leave you with a somewhat useful web application whose use is only <i>for the here and now<\/i>, but what if you want it to be more accountable?  Well, that is when we, here, at RJM Programming, like to use that tried and trusted <a target=_blank title='Email information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Email'><i>email<\/i><\/a> form of communication.<\/p>\n<p>Today&#8217;s email methods spurn the use of server-side intervention, at least for now.  So what is available to us as tools, if we don&#8217;t include Ajax nor jQuery in that list?  Well, we have, to our minds &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Mailto link information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tryit.asp?filename=tryhtml_link_mailto'>mailto<\/a> links (get us to the email client) +<\/li>\n<li>the body section of that email can have a clipboard image <i>pasted<\/i> into it, for which we can utilize HTML5 <a target=_blank title='HTML Canvas element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/ref_canvas.asp'>canvas<\/a> element&#8217;s <a target=_blank title='HTML5 canvas element toDataURL method information' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/HTMLCanvasElement\/toDataURL'>toDataURL<\/a>() method, teamed up with a <a target=_blank href='http:\/\/www.w3schools.com\/jsref\/met_win_open.asp' title='window.open information from w3schools'><i>window.open<\/i><\/a> popup window of the <i>toDataURL<\/i> image data, which can be <i>selected<\/i> and <i>copied<\/i>, optionally, by the user themselves, should they wish this to make their email more self explanatory<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer_email.gif\" title='The workings of email creation'><\/img>\n<\/li>\n<\/ul>\n<p>We last discussed this thinking with <a target=_blank title='Canvas Annotation Email Attachment Clipboard Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/canvas-annotation-email-attachment-clipboard-tutorial\/'>Canvas Annotation Email Attachment Clipboard Tutorial<\/a>.<\/p>\n<p>We rely on the <a target=_blank title='crontab information from computerhope ... thanks' href='http:\/\/www.computerhope.com\/jargon\/c\/cron.htm'><i>crontab<\/i><\/a> functionality, being as there is no server-side help, to create the image file, whose contents eventually go to make up the contents that can be selected and copied and pasted by the user into the body section of the email (and sent off to whosoever they feel like sending it too, as you have the full power of the email client available to you with the interaction you have with an actual email client program).<\/p>\n<p>Here is the HTML and Javascript <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-GETME\">quarter_hour_timer.html<\/a> which changed to cater for today&#8217;s email functionality in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html-GETME\">this way<\/a>, and, as per the <b><i>Stop Press<\/i><\/b> from yesterday, we&#8217;ll also have a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\" title='Click picture'>live run<\/a> link here today.<\/p>\n<hr>\n<p id='moxmtwapt'>Previous relevant <a target=_blank title='Mac OS X MAMP Timekeeping Web Application Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-mamp-timekeeping-web-application-primer-tutorial\/'>Mac OS X MAMP Timekeeping Web Application Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS X MAMP Timekeeping Web Application Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.jpg\" title=\"Mac OS X MAMP Timekeeping Web Application Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS X MAMP Timekeeping Web Application Primer Tutorial<\/p><\/div>\n<p>Sometimes when you program, especially for administrative type functionality, there are useful programs to write, that are able to become web applications, but in a limited set of platforms.  So it is today with our timekeeping web application that relies on &#8230;<\/p>\n<ul>\n<li><i>Mac OS X<\/i> operating system +<\/li>\n<li>Existance of [\/usr\/sbin\/]<a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> +<\/li>\n<li><a target=_blank title='crontab information from computerhope ... thanks' href='http:\/\/www.computerhope.com\/jargon\/c\/cron.htm'><i>crontab<\/i><\/a> active and editable via <i>crontab -e<\/i> +<\/li>\n<li>One of &#8230;\n<ol>\n<li><a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'><i>MAMP<\/i><\/a> installed to, in our case, <i>\/Applications\/MAMP\/htdocs\/<\/i> (as is mentioned in the relevant <i>crontab<\/i> background task that snapshots the user&#8217;s screen every quarter hour) that maps to the MAMP web application URL <i>http:\/\/localhost:8888\/<\/i> &#8230; or &#8230;<\/li>\n<li><i>crontab<\/i> directory mention that corresponds to a URL call of our web application like for our Google Chrome example (where the <i>directory<\/i> below, used, could be a place of your choosing (that matches what is in your <i>crontab<\/i> task entry)) &#8230;<br \/>\n<code><br \/>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i>quarter_hour_timer.html?localplace=<br \/>\n<\/code><br \/>\n&#8230; or just, via the web browser&#8217;s File -&gt; Open File menu &#8230;<br \/>\n<code><br \/>\nfile:\/\/<i>\/Applications\/MAMP\/htdocs\/<\/i>quarter_hour_timer.html<br \/>\n<\/code><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.gif\"><\/img>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p> &#8230; pretty restrictive, huh? &#8230; but pretty useful for our quarter hour timekeeping purposes today.<\/p>\n<p>We want to have a web application that is running at the user&#8217;s discretion, and when first fired up, looks for outputs from <i>crontab<\/i> tasks above &#8230;<\/p>\n<p><code><br \/>\n0,15,30,45 * * * * \/usr\/sbin\/screencapture -Cd -tjpg <i>\/Applications\/MAMP\/htdocs\/<\/i>screen-`date +\"\\%Y\\%m\\%d-\\%H\\%M\"`.jpg<br \/>\n<\/code><\/p>\n<p> &#8230; for the current day in question and if existant show &#8230;<\/p>\n<ol>\n<li>a date and time stamp +<\/li>\n<li>the snapshot of what you were doing at the quarter hour, that is clickable to make bigger for more in depth viewing +<\/li>\n<li>an HTML textarea element in which you can optionally type in more specifics about that quarter hour<\/li>\n<\/ol>\n<p>So, as much as we like to think of Mac OS X Terminal application&#8217;s <a target=_blank title='Berkeley Software Distribution information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Berkeley_Software_Distribution'>BSD<\/a> (a unix derivative) operating system, as being a lot like Linux, there are some commands and usage that &#8230;<\/p>\n<ul>\n<li>adds Mac OS X specific command line functionality to a Linux or unix base set of functionality, like for today&#8217;s <a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> command &#8230; and we&#8217;ve included another such example, below, with the command <a target=_blank title='say command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/say.1.html'><i>say<\/i><\/a> featuring in <a title='Mac OS X Text to English Speech Primer Tutorial' href='#moxttspt'>Mac OS X Text to English Speech Primer Tutorial<\/a> as shown below<\/li>\n<li>changes switches on Linux or unix commands<\/li>\n<li>won&#8217;t have some Linux or unix commands that other platforms do<\/li>\n<\/ul>\n<p>In the great tradition of <i>behoving<\/i> &#8230; we <i>behove<\/i> &#8230; we <i>behove<\/i> thee <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html_GETME\">quarter_hour_timer.html<\/a> if you like, my liege.  On this occasion you&#8217;ll have gleaned that there is no <i>live run<\/i> link, because the RJM Programming web server is not Mac OS X &#8230; so command line <a target=_blank title='screencapture command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/screencapture.1.html'><i>screencapture<\/i><\/a> has no meaning for a CentOS web server&#8217;s operating system command line.  You&#8217;ll see in the code that rather than use <a target=_blank title='\"Client Pre-emptive Iframe\" at this blog' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=client-pre-emptive-iframe'>&#8220;Client Pre-emptive Iframe&#8221;<\/a> concepts to check for existence of <i>crontab<\/i> screen capture images, we, instead use the <a target=_blank title='Javascript onerror event information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/event_onerror.asp'><i>onerror<\/i><\/a> event for HTML <a target=_blank title='HTML img tag information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_img.asp'>img<\/a> elements to check for non-existance.<\/p>\n<p><b><i>Stop Press<\/i><\/b><\/p>\n<p>Just noticed that, perhaps, after all, a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/quarter_hour_timer.html\">live run<\/a> from the RJM Programming website can make sense if you have a Mac OS X laptop, for instance, that is running that suggested <i>crontab<\/i> entry as explained in tutorial above.  That type of live run managed to latch on to our local <i>crontab<\/i> screencaptures on my MacBook Pro.<\/p>\n<hr>\n<p id='moxttspt'>Previous relevant <a target=_blank title='Mac OS X Text to English Speech Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-x-text-to-english-speech-primer-tutorial\/'>Mac OS X Text to English Speech Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html?clickit=submitmb\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Mac OS X Text to English Speech Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/say.jpg\" title=\"Mac OS X Text to English Speech Primer Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Mac OS X Text to English Speech Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve got a few new ideas today &#8230;<\/p>\n<ol>\n<li>Text to English Speech via Mac OS X&#8217;s command line <a target=_blank title='say command information from Apple' href='https:\/\/developer.apple.com\/legacy\/library\/documentation\/Darwin\/Reference\/ManPages\/man1\/say.1.html'><i>say<\/i><\/a> command used by PHP via <a target=_blank title='PHP exec() method information' href='http:\/\/php.net\/manual\/en\/function.exec.php'><i>exec<\/i><\/a> to make <a target=_blank title='say.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/say.php_GETME'>say.php<\/a> (which is useful as a download to a Mac OS X laptop using <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a>) which, today, does not have a live run because the web server of domain <i>rjmprogramming.com.au<\/i> is a CentOS Linux server &#8230; Linux equivalent of Mac OS X&#8217;s <i>say<\/i>? &#8230; read <a target=_blank title='Useful link' href='https:\/\/github.com\/usc-isi-i2\/festival-text-to-speech-service\/blob\/master\/README.md'>here<\/a><\/li>\n<li>Trying to present this brought up the usual movie production problem with <a target=_blank title='iMovie for Mac information from Apple' href='http:\/\/www.apple.com\/au\/mac\/imovie\/'>iMovie<\/a> overlaying the audio on top of the video (though you may want to try, and you could start reading with <a target=_blank title='Semi useful link' href='http:\/\/video.stackexchange.com\/questions\/2579\/can-you-link-an-audio-track-to-a-video-track-in-imovie'>this link<\/a>) versus <a target=_blank title='QuickTime information from Apple' href='https:\/\/support.apple.com\/downloads\/quicktime'>QuickTime Player<\/a> talent to catch both audio and video tracks (and that we ended up using), but not of the &#8220;screen goings on&#8221;, alas versus <a target=_blank title='MPlayer OSX Extended information' href='http:\/\/mplayerosx.ch\/'>MPlayer OSX Extended<\/a> which can play separately but not two tracks on top and doesn&#8217;t do any reconstituting &#8230; so &#8230;<\/li>\n<li>Improved on our inhouse Video\/Audio synchronizing efforts by allowing <a target=_blank title='audio_video.html' href='http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html---GETME'>audio_video.html<\/a> supervisor (changed in <a target=_blank title='audio_video.html' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html---GETME'>this way<\/a>) be able to be called to press one of its preconceived synchronization buttons <i>onload<\/i> which we do with (the newly added) <a target=_blank title='Macbeth Act 1 Scene 1' href='http:\/\/www.rjmprogramming.com.au\/PHP\/audio_video.html?clickit=submitmb'>Macbeth Act 1 Scene 1<\/a> &#8230; in a small <a target=_blank title='Birthday of Shakespeare' href='http:\/\/www.shakespeare.org.uk\/visit-the-houses\/whats-on.html\/birthday-celebrations.html'>celebration<\/a> of the Bard &#8230; who, am thinking (in that Falstaff way), would have got a huge chuckle out of &#8220;anonymous&#8221; instead of &#8220;anon&#8221; during the Three Witches scene &#8230; we <i>had<\/i> to do something to say Happy Birthday<\/li>\n<\/ol>\n<p>Along the way we tried filming the MacBook Pro with the iPad to a <a target=_blank title='YouTube' href='http:\/\/youtube.com'>YouTube<\/a> &#8230;<\/p>\n<p><iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/9-Hvlz8g1Mg\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p> &#8230; but weren&#8217;t happy with the audio quality, alas (too\/two).<\/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='#d21904' onclick='var dv=document.getElementById(\"d21904\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/text-to-speech\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d21904' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d22942' onclick='var dv=document.getElementById(\"d22942\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/time\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d22942' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d22960' onclick='var dv=document.getElementById(\"d22960\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/email\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d22960' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54161' onclick='var dv=document.getElementById(\"d54161\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/intranet\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54161' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54183' onclick='var dv=document.getElementById(\"d54183\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/iptc\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54183' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54189' onclick='var dv=document.getElementById(\"d54189\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/calendar\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54189' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54197' onclick='var dv=document.getElementById(\"d54197\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/localStorage\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54197' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54220' onclick='var dv=document.getElementById(\"d54220\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/contenteditable\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54220' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54228' onclick='var dv=document.getElementById(\"d54228\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/download\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54228' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54235' onclick='var dv=document.getElementById(\"d54235\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/windows\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54235' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d54243' onclick='var dv=document.getElementById(\"d54243\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/iframe\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54243' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today we clarify our Timekeeping web application for those users who have followed through, downloading the HTML and PHP to their local web server (we&#8217;re recommending MAMP) client computer, adding to the Windows client work of yesterday&#8217;s Mac OS MAMP &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-os-mamp-timekeeping-web-application-php-calendar-iframe-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":[2,12,14,37],"tags":[43,44,69,85,91,135,136,180,234,2442,272,274,301,2310,400,2730,3081,1608,576,2064,587,590,614,624,3871,652,714,2415,1565,3000,3080,725,744,778,1661,871,932,997,2407,1054,1063,1103,1126,1168,2311,1244,1279,1921,1319,1891,1433,1435,1686],"class_list":["post-54243","post","type-post","status-publish","format-standard","hentry","category-ajax","category-elearning","category-event-driven-programming","category-tutorials","tag-net","tag-net-framework","tag-ajax","tag-apache","tag-apple","tag-batch","tag-batch-file","tag-calendar","tag-command-line","tag-contenteditable","tag-cron","tag-crontab","tag-date","tag-details","tag-event","tag-formdata","tag-global-variable","tag-hover","tag-html","tag-ical","tag-iframe","tag-image","tag-integration","tag-intranet","tag-iptc","tag-javascript","tag-local-web-server","tag-localstorage","tag-login","tag-long-hover","tag-mac-os","tag-mac-os-x","tag-mamp","tag-metadata","tag-onmouseout","tag-onmouseover","tag-php","tag-programming","tag-record","tag-report","tag-reveal","tag-screen-capture","tag-settimeout","tag-software-integration","tag-summary","tag-task-schedular","tag-time","tag-timekeeping","tag-tutorial","tag-user","tag-window-open","tag-windows","tag-windows-10"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54243"}],"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=54243"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54243\/revisions"}],"predecessor-version":[{"id":54246,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54243\/revisions\/54246"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=54243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=54243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=54243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}