Am 25.08.2012 23:06, schrieb Lester Caine:
ereg('<body>(.*)</body>', $phpinfo, $regs);

Pulls the body of phpinfo() to use with a tidy header of other system
information, but I'm struggling to get a pcre alternative. Anybody
already cracked this one?


usually it's just fine to wrap the pattern into delimiter.

| preg_match('~<body>(.*)</body>~i', $phpinfo, $regs);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to