You are here: String manipulation out of the box solution? « PHP « IT news, forums, messages
String manipulation out of the box solution?

Posted by Merlin on 05/10/05 15:58

Hi there,

I am writing an internal full text search engine and do have trouble in
outputting the text in an apropriate way.

Problem is that if there is more than one word I cant handle the text cropping.

For example:
Search term: php germany
Text from database: There is no such great language than php. Amongh those
countries using this language is Germany with a good percentage of users.
Text output should be:
....language than php. Amongh... language is Germay with a good...

Similar to the way google does it. I tried it now with a couple of ways but
failed for most (I tried with strpos and substr).

Is there a solution out of the box with php, or maybe anybody knows a good
script which does that. This does sound like a standard feature to me.

Thank you for any help,

Merlin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация