![]() |
Warning: ereg_replace(): REG_EBRACK in .....
Greetings
I'm getting this error while spidering Warning: ereg_replace(): REG_EBRACK in /full/path/to/libs/phpdig_functions.php on line 231 $text = ereg_replace('(['.$phpdig_words_chars[$encoding].'])[\'._~@#$:&%/;,=-]+ ($|[[:space:]]$|[[:space:]]['.$phpdig_words_chars[$encoding].'])','\1\2',$text); I have replaced ereg_replace with str_replace and it works fine now phpDig works fine, but why it was giving errors with ereg_replace? |
If you set your encoding to iso-8859-1, then you should crawl pages with the same encoding. It is not advisable to replace ereg_replace with str_replace! Try the below test.
PHP Code:
|
hmm I can understand but the problem, I'm crawling sites with different encoding, I have tried to use UTF-8 (I though I first that phpDig Convert and store data to the selected encoding )
but it didnt work fine, and same with other encoding what to do when I have to crawl sites with different encoding ? |
Quote:
|
All times are GMT -8. The time now is 11:20 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.