Preg Matching Contents Of An Element
$url_contents = file_get_contents($url);
preg_match('/<input type="hidden" name="form_build_id" value=(.*?)" /', $url_contents, $matches);
$the_value = $matches[1];
Hopefully this helps someone out there...
preg_match('/<input type="hidden" name="form_build_id" value=(.*?)" /', $url_contents, $matches);
$the_value = $matches[1];
Hopefully this helps someone out there...
Comments
Post a Comment