tetecko81sk Posted April 2, 2007 Share Posted April 2, 2007 Does somebody know how to get for example table from url which is viewable only in html? example: what i need is red color, but <div id="obsah_vnutro"> is not important. the table is important. the html source is variable. thanks a lot! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> ... </div><!-- levypanelobal /--> <div id="hlavnipanelobal"> <div id="obsah_vnutro"> <P class=nadpist align=center>Aktuálna tabuľka - III. liga</P> <TABLE border=0 cellPadding=3 cellSpacing=1 width="98%"> <TR class=tableh> <TD align=middle noWrap>#</TD> <TD noWrap>Klub</TD> <TD align=middle noWrap>Z</TD> <TD align=middle noWrap>V</TD> <TD align=middle noWrap>R</TD> <TD align=middle noWrap>P</TD> <TD align=middle colSpan=3 noWrap>Skóre</TD> <TD align=middle noWrap>Body</TD> <TD align=middle noWrap>+ Body</TD></TR> ... </TABLE> <br style="clear: both" /> </div> <br clear=both /> </div><!-- hlavnipanelobal /--> .... </html> Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 viewable only in html... erm you have it already unless you want to try to protect your html code !! your need a javascript solution but they are easy to break (if anyone really wants too break it) Quote Link to comment Share on other sites More sharing options...
tetecko81sk Posted April 2, 2007 Author Share Posted April 2, 2007 my page will be on other site but i want to display table from this page: http://www.zsfz.sk/tabulky.php it doesn`t matter if somebody broke up my code i tried to use fopen() and readfile() but i don`t know how to delete lines before and after string Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 tried include("file.php"); ? Quote Link to comment Share on other sites More sharing options...
tetecko81sk Posted April 2, 2007 Author Share Posted April 2, 2007 it`s not usefull,, because page is written in php and only i need is that tale with football (soccer) scores Quote Link to comment Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 so your trying to rip data from another site :-\ Quote Link to comment Share on other sites More sharing options...
tetecko81sk Posted April 2, 2007 Author Share Posted April 2, 2007 yes, you`re right Quote Link to comment 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.