ereg / eregi is no longer supported in 5.3+
need some help converting this.
<?php
$path = $_SERVER['REQUEST_URI'];
if(eregi('^/community/',$path) == 1) {
?>
Have you tried preg_match with the i modifier ?
HTH
-Rob B
jsteinmann wrote: ereg / eregi is no longer supported in 5.3+
jsteinmann wrote:
No, it's deprecated, which means it still works, but will be removed from the next major version.
if (preg_match('#^/community/#i', $path)) {