{"id":5070606,"date":"2014-07-05T11:50:03","date_gmt":"2014-07-05T11:50:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-the-include-function\/"},"modified":"2016-08-21T22:59:53","modified_gmt":"2016-08-21T22:59:53","slug":"using-the-include-function","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-the-include-function\/","title":{"rendered":"using the include function"},"content":{"rendered":"<p>Hi everyone, <\/p>\n<p>I am new to wordpress and PHP and trying to find my way around.<br \/>\nI have placed a file with a single function in the base folder (C:\\xampp\\htdocs\\wordpress).<br \/>\nwithin the [insertphp] tags, I have include &#8216;&lt;\\name of the file&gt;&#8217;. I have also tried to include the entire path to the file, but that doesnt work either.<br \/>\nI am getting the following error: Warning: include(1): failed to open stream: No such file or directory in C:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\insert-php\\insert_php.php<\/p>\n<p>Can someone please help me.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/insert-php\/<\/p>\n","protected":false},"template":"","class_list":["post-5070606","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5070606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5070606\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5070606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}