View Single Post
Old 02-27-2005, 10:51 PM   #22
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Okay, so I did a fresh install of PhpDig v.1.8.7 and the only change I made to the package was this:

In robot_functions.php find the phpdigCleanHtml function, and in this function find:
Code:
//replace foo characters by space
$text = eregi_replace("[*{}()\"\r\n\t-]+"," ",$text);
And replace that with the following:
Code:
//replace foo characters by space
$text = eregi_replace("[*{}()\"\r\n\t]+"," ",$text);
I then indexed http://www.john-howe.com/portfolio/gallery/details.php?image_id=76 from the admin panel textbox and afterwards did a search on ISBN and 0-26-110318-0 with the following search results being shown:

Results 1-1, 1 total, on "ISBN" (0.01 seconds)

1. [100.00 %] :// John Howe :: Illustrator [ Portfolio ] From Hobbiton to Mordor / Gandalf Before the Walls of Minas Tirith
limit to http://www.john-howe.com/, this path : portfolio/gallery/

...994 The Map of Tolkien's Middle-Earth Brian SIBLEY HarperCollinsPublishers ISBN - 0-26-110318-0 September 2, 1994 R****m House Audio: The Two Towers -...


Results 1-1, 1 total, on "0-26-110318-0" (0.01 seconds)

1. [100.00 %] :// John Howe :: Illustrator [ Portfolio ] From Hobbiton to Mordor / Gandalf Before the Walls of Minas Tirith
limit to http://www.john-howe.com/, this path : portfolio/gallery/

... Map of Tolkien's Middle-Earth Brian SIBLEY HarperCollinsPublishers ISBN - 0-26-110318-0 September 2, 1994 R****m House Audio: The Two Towers - CD fro...

Now the PHP eregi_replace function has been around for a while, so I don't think that the issue has anything to do with PHP, and because with the above change, I can get "0-26-110318-0" in the search results, I don't think it's a PhpDig issue either. Maybe it's a permissions issue, but without further information, I cannot be sure why you are having an issue with dashes.
__________________
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