Menu

search for and print specific src=

Help
Anonymous
2016-12-09
2016-12-14
  • Anonymous

    Anonymous - 2016-12-09

    Hi, I'm trying to get phpcrawl to go through a website and print or output all instances of a specific src on a page. ie
    "type="text/javascript" src="http://adserver.adtech.de/addyn|3.0|646|****"
    The aim of this is to try and find out how many of our webpages are missing this. Is there a way to do this. I think it would be under the setLinkExtractionTags() method but i'm a novice at php.
    Thanks

     
  • James Shaver

    James Shaver - 2016-12-14

    That's what I would use too. Not sure you need to specify that a single item is an array, so I'd just do:
    $crawler->setLinkExtractionTags("src");

     

Anonymous
Anonymous

Add attachments
Cancel