|
04-06-2005, 01:34 PM | #1 |
Orange Mole
Join Date: Mar 2004
Posts: 48
|
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 /> |
04-06-2005, 02:40 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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)))
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
04-06-2005, 08:04 PM | #3 |
Orange Mole
Join Date: Mar 2004
Posts: 48
|
That solved the problem. Thank you, Charter!
|
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Warning: mb_ereg_replace() [function.mb-ereg-replace] ... | kaffeebronko | Troubleshooting | 23 | 02-26-2005 07:35 PM |