{"id":58473,"date":"2023-03-02T03:01:43","date_gmt":"2023-03-01T17:01:43","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=58473"},"modified":"2023-03-01T12:26:03","modified_gmt":"2023-03-01T02:26:03","slug":"php-remote-files-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/php-remote-files-primer-tutorial\/","title":{"rendered":"PHP Remote Files Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/remote_files.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"PHP Remote Files Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/remote_files.gif\" title=\"PHP Remote Files Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">PHP Remote Files Primer Tutorial<\/p><\/div>\n<p>If your background is in C programming (and the use of <a target=_blank title='C fopen' href='https:\/\/www.tutorialspoint.com\/c_standard_library\/c_function_fopen.htm'>fopen<\/a> function), you might be amazed at PHP&#8217;s <a target=_blank title='PHP fopen' href='https:\/\/www.php.net\/manual\/en\/function.fopen.php'>fopen<\/a> function&#8217;s talents at opening URLs, as well as &#8220;desktop&#8221; files we <font size=2>(programming citizens of senior years <\/font><font size=1>&#8220;shell we say&#8221;<\/font><font size=2>)<\/font> might have more associated with &#8220;fopen thoughts&#8221;.<\/p>\n<p>Combine this PHP fopen URL talent with <a target=_blank title='PHP preg_match' href='https:\/\/www.php.net\/manual\/en\/function.preg-match.php'>preg_match<\/a> function talent, and you&#8217;ve got a pretty simple paradigm to do pretty sophisticated searches through webpage contents for data of interest.<\/p>\n<p>And so, stumbling upon <a target=_blank href='https:\/\/php-legacy-docs.zend.com\/manual\/php5\/en\/features.remote-files'>this excellent advice<\/a> we were able <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/remote_files.php-GETME\">to tailor a first draft<\/a> into a <a target=_blank title='remote_files.php' href='http:\/\/www.rjmprogramming.com.au\/remote_files.php-GETME'>second draft<\/a> (so far non-interactive) usage of PHP fopen URL <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/remote_files.php\" title=\"Click picture\">web application<\/a> you could try for yourself playing around with &#8230;<\/p>\n<p><a style=background-color:yellow; contenteditable=true target=_blank data-status='' ontouchstart=\"this.setAttribute('data-status','mot');\" onmouseout=\"this.setAttribute('data-status','mot');\" onblur=\"this.setAttribute('data-status','mot'); this.click();\" onmouseover=\"this.setAttribute('data-status','mov');\" onclick=\"if (1 == 2) { this.href=this.innerHTML; }  if (this.getAttribute('data-status') == 'mot') { this.setAttribute('data-status','mov'); window.open(this.innerHTML.replace(\/\\&#038;amp\\;\/g,'&#038;'),'_blank'); }\">HTTP:\/\/www.rjmprogramming.com.au\/remote_files.php?url=https:\/\/www.rjmprogramming.com.au\/Contact_Us.html&#038;type=p&#038;ord=2<\/a> <\/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='#d58473' onclick='var dv=document.getElementById(\"d58473\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/fopen\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d58473' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If your background is in C programming (and the use of fopen function), you might be amazed at PHP&#8217;s fopen function&#8217;s talents at opening URLs, as well as &#8220;desktop&#8221; files we (programming citizens of senior years &#8220;shell we say&#8221;) might &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/php-remote-files-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[176,257,319,418,932,4028,997,1319,1345],"class_list":["post-58473","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-c","tag-content","tag-desktop","tag-file","tag-php","tag-preg_match","tag-programming","tag-tutorial","tag-url"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58473"}],"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=58473"}],"version-history":[{"count":11,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58473\/revisions"}],"predecessor-version":[{"id":58484,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/58473\/revisions\/58484"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=58473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=58473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=58473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}