Help in saving file to mysql

Discussion in 'PHP' started by anurag.sharma, May 27, 2008.

  1. #1
    I am just learning PHP and experimenting it. This forum is a good resource .. thanks a lot to those who contributed..


    I want to extract a wikipage ,say,

    http://en.wikipedia.org/wiki/Georg_C._F._Greve

    Then, I want to save each sub heading along with its description as a separate file ( may be in as text files) to mysql database under a one directory that bears the name of the page. I need to save the introductory portion also under in a text file , say introduction


    Please help...
     
    anurag.sharma, May 27, 2008 IP
  2. Greg-J

    Greg-J I humbly return to you.

    Messages:
    1,844
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    135
    #2
    If you want to write a scraper you're going to need to get familiar with regular expression (regex buddy is a good tool to learn regex visually). You would also do well to use a class built for screen scraping, such as Snoopy. If you have specific questions I can help.
     
    Greg-J, May 27, 2008 IP
  3. anurag.sharma

    anurag.sharma Guest

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the replay...

    I have crawled the page. But I wish to know how do I split the same and save.

    please help
     
    anurag.sharma, May 27, 2008 IP