Jump to content

PHP Simple HTML DOM Parser - Find a specific URL


brooksh

Recommended Posts

There are several URL's in the page that include $id in them. The one I need does not have any special tags, just a long URL that I can't seem to get because of special characters. I'm using a wildcard, but it take it. Can i get any help?



URL: <a href="http://thewebsite.com/?bhtid=8774&sdop=1&amp" rel="nofollow" target="_blank">
foreach ( $page->find("a[href*=$id&amp]") as $url){ //doesn't work

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.