Gardacus 2 Posted October 7, 2011 Report 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 Quote Link to post Share on other sites
rob 53 Posted October 7, 2011 Report 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 Quote Link to post Share on other sites
Gardacus 2 Posted October 8, 2011 Author Report Share Posted October 8, 2011 Thanks Rob! I will try to get familiar with PCRE Mike Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.