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! Quote 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>"; ?> Quote 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? Quote 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. Quote 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!! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.