![]() |
ereg(): REG_BADRPT
I am getting an error when index some sites. I have not seen this before and have not found anything in the forums about it. The line referred to has reads:
while (list($path_exclude) = each($exclude)) Here is the results for a site indexing: SITE : http://www.ncrivers.com/ Exclude paths : - *360 - @NONE@ <br /> <b>Warning</b>: ereg(): REG_BADRPT in <b>/home/.laptop/green45/search.northernmaineonline.com/admin/robot_functions.php</b> on line <b>952</b><br /> +166:http://www.ncrivers.com/ (time : 00:34:20) <br /> <b>Warning</b>: ereg(): REG_BADRPT in <b>/home/.laptop/green45/search.northernmaineonline.com/admin/robot_functions.php</b> on line <b>952</b><br /> <br /> <b>Warning</b>: ereg(): REG_BADRPT in <b>/home/.laptop/green45/search.northernmaineonline.com/admin/robot_functions.php</b> on line <b>952</b><br /> + <br /> <b>Warning</b>: ereg(): REG_BADRPT in <b>/home/.laptop/green45/search.northernmaineonline.com/admin/robot_functions.php</b> on line <b>952</b><br /> + <br /> |
In PhpDig 1.8.7 try adding the following line:
Code:
$path_exclude = preg_quote($path_exclude,"/"); Code:
if ((ereg('^'.$path_exclude,$path)) || (ereg('^/'.$path_exclude,$path))) |
That solved the problem. Thank you, Charter!
|
All times are GMT -8. The time now is 04:01 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.