phpfanphp Posted September 10, 2007 Share Posted September 10, 2007 Anyone know how to load a website in table? For instance, let's say I wanted to load http://www.ebay.com in a table on a page. How would I do that? Thanks! Link to comment https://forums.phpfreaks.com/topic/68650-solved-loading-a-website-in-a-table/ Share on other sites More sharing options...
Fadion Posted September 10, 2007 Share Posted September 10, 2007 try: <?php $content = file_get_contents("http://www.ebay.com"); echo "<table><tr><td>$content</td></tr></table>"; ?> Link to comment https://forums.phpfreaks.com/topic/68650-solved-loading-a-website-in-a-table/#findComment-345112 Share on other sites More sharing options...
phpfanphp Posted September 10, 2007 Author Share Posted September 10, 2007 NICE!!!!!!!!!!! THANKS!!!!!!!!!!!!!!!!! Any idea how to force it a certain width? Link to comment https://forums.phpfreaks.com/topic/68650-solved-loading-a-website-in-a-table/#findComment-345114 Share on other sites More sharing options...
Fadion Posted September 10, 2007 Share Posted September 10, 2007 <?php $certainWidth = 500; echo "<table width=\"{$certainWidth}\"><tr><td>$content</td></tr></table>"; ?> lol just for fun, but the "width" attribute of "<table>" will do it. Link to comment https://forums.phpfreaks.com/topic/68650-solved-loading-a-website-in-a-table/#findComment-345117 Share on other sites More sharing options...
phpfanphp Posted September 10, 2007 Author Share Posted September 10, 2007 lol You're the MAN!!! Nice work! Hats off to you and thanks!! Link to comment https://forums.phpfreaks.com/topic/68650-solved-loading-a-website-in-a-table/#findComment-345125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.