Quote:
Originally Posted by vinpkl
hi job0107
sorry if i was not able to clear the problem.
There are more than 2000 articles static html pages for which i need to extract data.
This is the sample code that i need to extract information from and add into database.
I need Title, Authorname, Article intro, articlebody as separate variables with information.
i hope this time everything will be understood.
vineet
|
Providing
ALL your pages are laid out exactly as you have described above,
and also providing you do not have anything against using a little javascript to assist,
then getting the contents becomes rather easy.
Instead of using file_get_contents(), I decided it would be easier to include your page in an invisible div.
Then have a javascript function capture the contents of the included document and store the results in a form.
Once the results are in the form, the form can be manually or automatically submitted for processing.
This example requires you to manually submit the form.
Then the value of the forms hidden input elements are displayed.
You could just as easily send the values to a database.