{"id":138,"date":"2011-12-24T15:02:53","date_gmt":"2011-12-24T15:02:53","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=138"},"modified":"2025-12-04T19:41:30","modified_gmt":"2025-12-04T19:41:30","slug":"reading-content-from-other-web-pages","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/php\/other-web-sites\/reading-content-from-other-web-pages","title":{"rendered":"Reading content from other web pages"},"content":{"rendered":"<h4>Use CURL<\/h4>\n<h5>Do this<\/h5>\n<pre><code>\n     $curl_connection= curl_init('http:\/\/mysite.com\/index.php');\n     curl_setopt ($curl_connection, CURLOPT_POST, 1);\n     curl_setopt ($curl_connection, CURLOPT_POSTFIELDS, \"option=com_content&amp;task=blogcategory&amp;id=24&amp;Itemid=55\"); \n<\/code><\/pre>\n<h5>or do this<\/h5>\n<pre><code>\n     $post_data['cmd'] = '_xclick';\n     $post_data[''] = '';\n     $post_data[''] = '';\n     $post_data[''] = ;\n     $post_data[''] = ;\n     $post_data[''] = ;\n     $post_data[''] = ;\n     foreach ( $post_data as $key =&gt; $value)\n     {\n          $post_items[] = $key . '=' . $value;\n     }\n     $post_string = implode ('&amp;', $post_items);\n     curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);\n\n     $result = curl_exec($curl_connection);\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Use CURL Do this $curl_connection= curl_init(&#8216;http:\/\/mysite.com\/index.php&#8217;); curl_setopt ($curl_connection, CURLOPT_POST, 1); curl_setopt ($curl_connection, CURLOPT_POSTFIELDS, &#8220;option=com_content&amp;task=blogcategory&amp;id=24&amp;Itemid=55&#8243;); or do this $post_data[&#8216;cmd&#8217;] = &#8216;_xclick&#8217;; $post_data[&#8221;] = &#8221;; $post_data[&#8221;] = &#8221;; $post_data[&#8221;] = ; $post_data[&#8221;] = ; $post_data[&#8221;] = ; $post_data[&#8221;] = ; foreach ( $post_data as $key =&gt; $value) { $post_items[] = $key . &#8216;=&#8217; . $value; } $post_string [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-other-web-sites"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":5252,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/138\/revisions\/5252"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}