preg_match Vs preg_match_all browser error not php?
Posted
by Phil Jackson
on Stack Overflow
See other posts from Stack Overflow
or by Phil Jackson
Published on 2009-10-18T12:11:46Z
Indexed on
2010/03/18
10:01 UTC
Read the original article
Hit count: 282
preg-match-all
Hi all i have the following:
$str = base64_encode(preg_replace("#\s|\r|\t|\n#", " ", file_get_contents("../www.cms.actwebdesigns.co.uk2/logged.php")));
if(preg_replace("#(PD9waHAg)((?!(Pz4g)).)*#is", $str, ))
{
#print_r($matches);
echo "<xmp>".base64_decode($matches[0]."Pz4g")."</xmp>";
}
now this works but i want to be able to use it for all occurrences on page. (finds php segments in page) So i used preg_match_all but returns a browser error (page has been moved or no longer exists) Anyone know why?
© Stack Overflow or respective owner