PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 04-06-2005, 01:34 PM   #1
jerrywin5
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 />
jerrywin5 is offline   Reply With Quote
Old 04-06-2005, 02:40 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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)))
__________________
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.
Charter is offline   Reply With Quote
Old 04-06-2005, 08:04 PM   #3
jerrywin5
Orange Mole
 
Join Date: Mar 2004
Posts: 48
That solved the problem. Thank you, Charter!
jerrywin5 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 08:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.