View Single Post
  #1 (permalink)  
Old 11-17-09, 11:38 PM
vinpkl vinpkl is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 62
Thanks: 3
Thanked 0 Times in 0 Posts
file get contents

hi all

PHP Code:



<?php
$article 
file_get_contents('http://www.domain.com/article_eng.html');
$qry="insert into article_data (article) values('$aricle')";
$result=mysql_query($qry);
?>
with this function i can crawl my html page and fetch its content and add in database.

but i would like to know that my html page has

1) article title
2) author name
3) description

i dont want any images or any other data like nav, header, footer.

so how will i fetch these 3 things separately.

vineet
Reply With Quote