uzair05mehran Posted May 23, 2011 Share Posted May 23, 2011 I have a php page in which javascript called like this <script language="JavaScript" type="text/javascript" src="http://www.test.com/test.php"></script> the output of the page shows a well detail table , but when i use file_get_content method to get that all detail in a varaible its just took above javascript like $a=<script language="JavaScript" type="text/javascript" src="http://www.test.com/test.php"></script> when i right click on page to view source it show just <script language="JavaScript" type="text/javascript" src="http://www.test.com/test.php"></script>. But on actual page there is a html table which detail i have to store in table, Can any one tell me method. Quote Link to comment https://forums.phpfreaks.com/topic/237223-read-the-web-page-content-help/ Share on other sites More sharing options...
AbraCadaver Posted May 23, 2011 Share Posted May 23, 2011 echo file_get_contents("http://www.test.com/test.php"); Quote Link to comment https://forums.phpfreaks.com/topic/237223-read-the-web-page-content-help/#findComment-1219116 Share on other sites More sharing options...
uzair05mehran Posted May 23, 2011 Author Share Posted May 23, 2011 i told file_get_content just echo blank Quote Link to comment https://forums.phpfreaks.com/topic/237223-read-the-web-page-content-help/#findComment-1219124 Share on other sites More sharing options...
AbraCadaver Posted May 23, 2011 Share Posted May 23, 2011 allow_url_fopen is probably off in php.ini. It would tell you this: error_reporting(E_ALL); ini_set('display_errors', '1'); Quote Link to comment https://forums.phpfreaks.com/topic/237223-read-the-web-page-content-help/#findComment-1219148 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.