redarrow Posted March 17, 2008 Share Posted March 17, 2008 ive heard and read others using the file_get_contents and using the eregi to get what they wont from a page how please cheers... my no good example............ <?php $body=eregi("^(<h1>).*(<\/h1>)",file_get_contents('http://freesingles.ath.cx')); echo $body; ?> Quote Link to comment https://forums.phpfreaks.com/topic/96505-fike_get_contents-serch-pattern-please-help/ Share on other sites More sharing options...
sasa Posted March 17, 2008 Share Posted March 17, 2008 try <?php $a = 'sasa<h1>SASA</h1> bla bla <H1 color="red">2nd</h1>'; preg_match_all('/<h1.*?>(.+?)<\/h1>/is',$a,$b); print_r($b); ?> Quote Link to comment https://forums.phpfreaks.com/topic/96505-fike_get_contents-serch-pattern-please-help/#findComment-493880 Share on other sites More sharing options...
trq Posted March 17, 2008 Share Posted March 17, 2008 Can you be a little more vague? Quote Link to comment https://forums.phpfreaks.com/topic/96505-fike_get_contents-serch-pattern-please-help/#findComment-493911 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.