PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   ereg(): REG_BADRPT (http://www.phpdig.net/forum/showthread.php?t=1958)

jerrywin5 04-06-2005 01:34 PM

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 />

Charter 04-06-2005 02:40 PM

In PhpDig 1.8.7 try adding the following line:
Code:

          $path_exclude = preg_quote($path_exclude,"/");
Right before the following line in the phpdigReadRobots fuction:
Code:

          if ((ereg('^'.$path_exclude,$path)) || (ereg('^/'.$path_exclude,$path)))

jerrywin5 04-06-2005 08:04 PM

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.