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 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 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 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.