Answered
convert eregi to php 5.3 compliance
ereg / eregi is no longer supported in 5.3+
need some help converting this.
<?php
$path = $_SERVER['REQUEST_URI'];
if(eregi('^/community/',$path) == 1) {
?>
ereg / eregi is no longer supported in 5.3+
need some help converting this.
<?php
$path = $_SERVER['REQUEST_URI'];
if(eregi('^/community/',$path) == 1) {
?>
jsteinmann wrote:
ereg / eregi is no longer supported in 5.3+
No, it's deprecated, which means it still works, but will be removed from the next major version.
if(eregi('^/community/',$path) == 1) {
if (preg_match('#^/community/#i', $path)) {
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.