|
12-10-2004, 03:45 AM | #1 |
Green Mole
Join Date: Sep 2004
Location: Amman
Posts: 4
|
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? |
12-10-2004, 01:19 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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:
__________________
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. |
12-11-2004, 10:57 PM | #3 |
Green Mole
Join Date: Sep 2004
Location: Amman
Posts: 4
|
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 ? |
12-12-2004, 12:58 AM | #4 | |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Quote:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Warning: ereg_replace(): REG_EBRACK | alivin70 | Troubleshooting | 3 | 02-23-2005 09:41 AM |
Warning | clearwater | Troubleshooting | 1 | 01-02-2004 09:31 PM |
Warning: .... foreach() | isto | Troubleshooting | 3 | 12-23-2003 05:03 PM |
Requested Warning | Charter | The Mole Hole | 0 | 11-28-2003 06:14 AM |
I got a warning, please help | David J Harmon | Troubleshooting | 6 | 09-29-2003 06:36 PM |