Projet numéro 318 : "PHP"


Initiateur du projet :
Prestataire sélectionné : suncraze
Description projet :

Hi, we need a php function to do html parsing and replacing patterns outside html tags. Here\'s the precise description :

Name : html_parse_and_replace

Description

string html_parse_and_replace ( string url, key_expressions[][], prefixes[], suffixes[] )

variables :

string url - an url like http://www.microsoft.com as an example

key_expressions[][] - an array with key_expressions; for example

key_expressions[0][0]=\'bottle\'
key_expressions[0][1]=\'wine\'

key_expr
essions[1][0]=\'brand\'
key_expressions[1][1]=\'new\'
key_expressions[1]
 [2]=\'car\'

...etc...

prefixes[] - an array with prefixes, one prefix for each key expression

suffixes[] - an array with suffixes, one suffix for each key expression

The function returns a string with the html page where all key expressions outside html tags in the web page have been identified, and the prefix and suffix have been added.
For example, if the webpage html code is simply this one:




a bottle of wine, what a good gift from god



the prefix for the key expression is \"prefix\"
the suffix for the key expression is \"suffix\", then the result for the function should be :




a prefixbottlesuffix of prefixwinesuffix, what a good gift from god




caution : the bottle_wine.gif inside the html tag remains unchanged

In fact, the result should look much like google-style highlighting key expressions :

http://66.249.93.104/search?q=cache:w2eZ4Q_k9ZkJ:www.microsoft.com/fra
nce/+microsoft&hl=fr&gl=fr&ct=clnk&cd=1

Here you have an example of what I need, but unfortunately this doesn\'t work in many cases (approximately 20% it fails, falls into an infinite loop, and crashes) :

http://www.ilovejackdaniels.com/php/google-style-keyword-highlighting
/


The function should process syntax-vicious pages (for example, if <> grammar is not fully respected, but original pages still display correctly).

 
 



Les sujets suivants peuvent également vous intéresser

specialiste phpcherche freelance web
independant microsoftindependant traitement image
cherche developpeur mise en pagefreelance integration html
developpeur gedcherche freelance xpress
recherche professionnel saisie sous wordcherche developpeur windows ce


Les sujets suivants peuvent également vous intéresser, sur notre plateforme partenaire GraphistesOnline

cherche freelance mise en pageprofessionnel style original
cherche codeur developpeur webcherche expert web html
cherche professionnel flash avec action script 2cherche webdesigner image retouche
cherche infographiste programmation phpcherche independant creation banniere gif
developpeur mise en pages de magazine livrerecherche codeur xpress photoshop illustrator indesign

Projets "en attente" similaires


Developpement logiciel creation audiovisuelle
recherche webdesigner multi-competent -dvt-integration- graphisme- montpelliers - republication
Création de site sur la base d'Airbnb sur support Android,Ios et site web
Rédaction de cahier des charges pour un site communautaire des avis de décès en cours de création
Ingenieur etudes et developpements Cobol Confirme - Aubenas OU Marseille

Projets "en cours" similaires


application web pour technicien de chauffage
Application windev de gestion de bande annonce
Je souhaite creer une application sur IOS - ANDROID et WEB
mise en place theme crystalline sur un site joomla 2.5
Finalisation Site communautaire en PHP - Republication

Projets "en archive" similaires


Systeme reservation ligne restaurant
Amelioration - debogages - corrections pour un site marchand
Ingenieur d-etude et developpement ANDROID H-F sur Paris et ses alentours
ne pas confirmer ce projet
Projet EMAILING - REPUBLICATION

Projets "VIP" similaires


Messenger audio video type msn ou yahoo messenger
Migration dune base 4d vers le web
Je recheche un developpeur _NET _C_ ou VB_ NET_
Developper systeme d information vente a domicile
Developpement d__un site communautaire _ php_mysql_ajax

 

 

 

 

(g)