MadnessRed Posted October 5, 2008 Share Posted October 5, 2008 Hi, I would assume you would use php for this. I have a web page. that echoes a number. I then have a second page which is want to read that number. Only problem is that they are on different subdomains. the page is http://board.darkevo.org/forum.php and will echo a single integer. what would be great is for a script that could read the source of that page and make it a variable such as $source. Is that possible? Link to comment https://forums.phpfreaks.com/topic/127131-read-from-a-file/ Share on other sites More sharing options...
Orio Posted October 5, 2008 Share Posted October 5, 2008 If you are using PHP5 and have allow_url_fopen enabled, all you need is: <?php $source = intval(file_get_contents("http://board.darkevo.org/forum.php")); ?> Orio. Link to comment https://forums.phpfreaks.com/topic/127131-read-from-a-file/#findComment-657623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.