PDA

View Full Version : ereg(): REG_BADRPT


jerrywin5
04-06-2005, 01:34 PM
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:

$path_exclude = preg_quote($path_exclude,"/");

Right before the following line in the phpdigReadRobots fuction:

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

jerrywin5
04-06-2005, 08:04 PM
That solved the problem. Thank you, Charter!