?eregi?
| From: | Nikolai Jeliazkov | Date: | Fri, 07 Jun 2002 06:02:17 +0000 |
| Subject: | ?eregi? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101090@lists.php.net to get a copy of this message | ||
Can anybody help me!!!
In my Windows2000 machine I use Apache 3.24 and PHP 4.0.6 and all is OK.
But when I transfer my code to work machine (Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_ssl/2.8.5 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.26)
the following script returns FALSE.
<?php
define(COUNTRY_OPTION, preg_quote('value="') . '(.*)' . preg_quote('">') . '(.*)' . preg_quote('</option>'));
$aaa = "<option value=\"100\">ANTIGUA AND BARBUDA</option>";
echo (eregi(COUNTRY_OPTION,$aaa,$regs))?"TRUE":"FALSE";
exit;
?>