« Ressources diverses » : différence entre les versions

Aucun résumé des modifications
Aucun résumé des modifications
 
(6 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
== Liens ==
  [http://jpgraph.net/ JpGraph : Most powerful PHP-driven charts with JavaScript]
  [http://jpgraph.net/ JpGraph : Most powerful PHP-driven charts with JavaScript]
  [https://htaccess.madewithlove.be/ htaccess tester]
  [https://htaccess.madewithlove.be/ htaccess tester]
[[category:Divers]]
[https://www.piliapp.com/symbol/ des centaines de symboles pour vos documents, pages web et réseaux sociaux]
[https://www.sitepoint.com/php/ sitepoint php]
[http://smashinghub.com/websites-loading-speed.htm 21 Great Tools To Optimize Website’s Loading Time]
[http://web-sniffer.net/ Voir la requête HTTP et entête de réponse(web-sniffer.net)]
 
== Convertir texte pour URL en PHP [Résolu] : Développement d'un site Web ==
<pre>
function texte_pour_url($a)
{
$TAILLE_MINI=2;
$TAILLE_MAXI=26;
$NOMBRE_MOTS=15;
$SEPARATEUR='-';
$c='AAAAAAAAAEEAAEAAAAAAAAAAAAAAAAAAEEEEEEEEEEEEEEEE0123456789EEEEEEEabcdefghijklmnopqrstuvwxyzEEEEEEabcdefghijklmnopqrstuvwxyzEEEEEBEEEEEEEEEsECEEEEEEEEEEEEEsECEzyEiEEEEEEEEEEEEEEEE23EEEEEEEEEEEEaaaaaaDceeeeiiiidnoooooxouuuuypEaaaaaaDceeeeiiiionoooooEouuuuyEyE';$d=strlen($a);for ($i = 0; $i < $d; $i++) $e.=$c[ord($a[$i])];$e=str_replace(array('A','B','C','D','E'),array('',' euro ','oe','ae',' '),$e);$e=preg_replace('#\s+#',' '," $e ");$e=preg_replace('#\s[a-z]{1,'.$TAILLE_MINI.'}\s([a-z]{1,'.$TAILLE_MINI.'}\s)*#',' ',$e);$e=preg_replace('#\s[a-z0-9]{'.$TAILLE_MAXI.',}\s([a-z0-9]{'.$TAILLE_MAXI.',}\s)*#',' ',$e);$e=str_word_count($e, 1, '0123456789');return implode($SEPARATEUR,array_slice($e,0,$NOMBRE_MOTS));
}
</pre>
 
 
 
 
[[category:Divers]] [[category:Javascript]]