I need a PHP parser. It is necessary for it to go in according to a given url variable, then parsil the information from certain tags.

Suppose we have the url http://site.ru/, and the information needs to be parsed from the tags <infa>здесь информация</infa> , this sparsen information is entered into a certain $a , this is the end of the work.

    2 answers 2

    And where are your achievements? This is not a freelance website. See functions: preg_match, file_get_contents .

    • So curl, especially not on all hosting costs. And I saw file_get_contents once, that it is banned from 8 hosting sites, at least. And then I was very surprised. But there was also no curl, I had to ask that they either allowed file_get_contents, or put curl. - iproger

    file_get_contents - on most hosting is closed like) you need to look in the direction of the Library cURL)