Gardacus Posted October 7, 2011 Share Posted October 7, 2011 Hello! I am almost at the end of the book, and after building and testing script 13.1 test_pattern.php, I get the following screen result, including error. The result of checking against is Deprecated: Function eregi() is deprecated in D:\xampp\htdocs\php-course\chapter_13\test_pattern.php on line 24 Warning: eregi() [function.eregi]: REG_EMPTY in D:\xampp\htdocs\php-course\chapter_13\test_pattern.php on line 24 FALSE! How can I work around this to continue testing this chapter? Thanks for your help! Loving the book! Mike Link to comment Share on other sites More sharing options...
rob Posted October 7, 2011 Share Posted October 7, 2011 You could set error reporting to ignore E_DEPRECATED notices or better yet, take a look at the PCRE extension: http://www.php.net/manual/en/function.preg-match.php 1 Link to comment Share on other sites More sharing options...
Gardacus Posted October 8, 2011 Author Share Posted October 8, 2011 Thanks Rob! I will try to get familiar with PCRE Mike Link to comment Share on other sites More sharing options...
Recommended Posts