06-24-2009, 06:44 PM
|
#8 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Quote:
Originally Posted by benton
I looked up the eregi command and there is a note that says,
but I don't see any other mention of "regex extension" on that page and I don't know what it refers to
|
The "regex extension" being referred to is the POSIX regex extension which is deprecated as of PHP 5.3.0, but any earlier versions should work for you. The extension is home to functions such as ereg, eregi, split and sql_regcase.
Can you call eregi in a basic script and get the desired results? For example, does the following script simply echo 3?
PHP Code:
<?php
echo ereg('php', 'elephpant', $match);
?>
Also, does $var contain the same value(s) when ran on both PHP versions?
|
|
|
|