867 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 3 / 4
Newer►
69 results tagged PHP x
  • Note : regex pour matcher les balises HTML et les attributs - Le Hollandais Volant - Links Lounge - Le Hollandais Volant

    Dingue, je suis lu :D
    J'ai re-testé le script de Timo et c'est impeccable en effet ! Enfin, sur les tests que j'ai effectué. Bien joué encore !

    Fri Mar 22 17:28:53 2013 - permalink -
    - - - http://lehollandaisvolant.net/index.php?mode=links&id=20130322142853
    HTML PHP Regex Sanitize
  • Note : regex pour matcher les balises HTML et les attributs - Le Hollandais Volant

    Ah oui les regex. Toujours galère en particulier pour parser du HTML; Je me demande si Le Hollandais Volant nous montrera un exemple d'utilisation.

    Personnellement, j'ai testé son script en utilisant le code de son article comme exemple (éhéh !). J'ai quelques balises de titre qui restent, mais c'est peut-être fait exprès... ?

    <div id="main">
        <section id="midle">
            <div id="posts">
            <article class="itembloc link" id="20130322003640">
        <hgroup class="post-hgr links-hgr">
            <h2 class="link-titre"><a href="index.php?mode=links&id=20130322003640">#5292</a> - <a href="http://lehollandaisvolant.net/?mode=links&id=20130322003640">Note : regex pour matcher les balises HTML et les attributs</a></h2>
            <h3 class="link-date">Aujourd’hui à 00:36:40</h3>
        </hgroup>
        <div class="post-cnt links-cnt">
            "#<\s*/?(?:[a-zA-Z-]+)(?: (?:\s*\w+=(['\"])(?:(?!\g{1}).|(?:(?<=\\\)\g{1}))+\g{1})*(?:\s*\w*\s*))?/?>#S"<br />
    <br />
    (en php, en gros : utiliser dans un preg_replace() et les remplacer par une chaine vide agira comme striptags().)<br />
    <br />
    (oui, les attributs peuvent contenir un « > » ou un « < », par exemple en JS : « 2<=4 », et c’est chiant).<br />
    <br />
    Un peu de doc complémtentaire :<br />
    <a href="http://www.regular-expressions.info/refadv.html">http://www.regular-expressions.info/refadv.html</a><br />
    <a href="http://stackoverflow.com/questions/6050427/regex-problem-with-backreference-in-pattern-with-preg-match-all/6051114#6051114">http://stackoverflow.com/questions/6050427/regex-problem-with-backreference-in-pattern-with-preg-match-all/6051114#6051114</a> (commentaire intéressant)<br />
    <a href="http://blog.lilhoot.eu/regex-et-preg-assertions-avant-arriere-lookahead-lookbehind-assertions-recuperer-les-chaines,a3">http://blog.lilhoot.eu/regex-et-preg-assertions-avant-arriere-lookahead-lookbehind-assertions-recuperer-les-chaines,a3</a> (en français, très intéressant et très clair)
        </div>
    </article>
    </div> <!-- end postS -->

    Devient :

    <h2 class="link-titre"> #5292  -  Note : regex pour matcher les balises HTML et les attributs </h2>
    <h3 class="link-date">Aujourd’hui à 00:36:40</h3>
    
    "#<\s*/?(?:[a-zA-Z-]+)(?: (?:\s*\w+=(['\"])(?:(?!\g{1}).|(?:(?<=\\\)\g{1}))+\g{1})*(?:\s*\w*\s*))?/?>#S" 
    
    (en php, en gros : utiliser dans un preg_replace() et les remplacer par une chaine vide agira comme striptags().) 
    
    (oui, les attributs peuvent contenir un « > » ou un « < », par exemple en JS : « 2<=4 », et c’est chiant). 
    
    Un peu de doc complémtentaire : 
     http://www.regular-expressions.info/refadv.html  
     http://stackoverflow.com/questions/6050427/regex-problem-with-backreference-in-pattern-with-preg-match-all/6051114#6051114  (commentaire intéressant) 
     http://blog.lilhoot.eu/regex-et-preg-assertions-avant-arriere-lookahead-lookbehind-assertions-recuperer-les-chaines,a3  (en français, très intéressant et très clair)
    <!-- end postS -->
    Fri Mar 22 09:15:56 2013 - permalink -
    - - - http://lehollandaisvolant.net/?mode=links&id=20130322003640
    HTML PHP Regex Sanitize
  • Singuliers, pluriels, acronymes, underscore... l'inflexion en PHP − Weirdog

    Ah oui, il faut reconnaître que c'est stylé ! ça semble être un très bon travail de Weirblog ! Certes bon un petit projet frenchy, une bonne vieille méthode "plurialize" est sûrement plus performante, mais bon, hein !

    Mon Mar 18 10:00:08 2013 - permalink -
    - - - http://www.weirdog.com/blog/icanboogie/singularize-pluralize-inflexion-php.html
    PHP Tools
  • Quelques modifications sur Leed 30 minutes par jour

    Allez hop quelques adaptations pour Leed.

    Fri Mar 15 10:48:08 2013 - permalink -
    - - - http://30minparjour.la-bnbox.fr/2013/quelques-modifications-sur-leed
    Leed PHP RSS
  • Parser de flux RSS et ATOM en PHP, léger et rapide - SyndExport - Liens en vrac de sebsauvage

    En effet, ce parser de flux RSS en PHP est à tester, parce que SimplePie commence à dater et je ne comprends pas pourquoi il est si gros / lourd / complexe. Et encore, il existait une autre bibliothèque avant SimplePie (Pie, bref, je ne me rappelle plus), c'était bien pire :-)

    Wed Feb 27 09:38:51 2013 - permalink -
    - - - http://sebsauvage.net/links/index.php?mGzbLg
    PHP RSS
  • vizhash

    Pratique pour rester anonyme mais identifiable

    Tue Feb 19 08:18:32 2013 - permalink -
    - - - http://sebsauvage.net/wiki/doku.php?id=php:vizhash_gd
    PHP
  • simple PHP cache

    Peut-etre utile sur de petirs projets PHP.

    Fri Feb 1 08:55:31 2013 - permalink -
    - - - http://www.catswhocode.com/blog/how-to-create-a-simple-and-efficient-php-cache
    Cache Optimisation PHP
  • La sécurisation des mots de passe et les poissons volants

    Le dernier article de la série au sujet de la sécurisation des mots de passe !

    Tue Jan 8 13:31:55 2013 - permalink -
    - - - http://30minparjour.la-bnbox.fr/2013/securisation-mots-de-passe-et-bcrypt
    30minparjour PHP Security
  • PHP: The Right Way
    Wed Nov 14 13:55:41 2012 - permalink -
    - - - http://www.phptherightway.com/#site-header
    Optimisation PHP Web
  • Project HoneyPot sur mon blog - Timo - Le Hollandais Volant - Liens en vrac de sebsauvage
    Wed Nov 14 12:04:00 2012 - permalink -
    - - - http://sebsauvage.net/links/index.php?4Ajfyg
    HoneyPot OnMyServer PHP
  • yuml-php - a PHP Adapter for http://yuml.me
    Tue Nov 13 15:32:48 2012 - permalink -
    - - - http://digitalkaoz.github.com/yuml-php/
    Generation PHP Text2Stuff UML
  • Autoload avec modération - Jy[B]log
    Thu Nov 8 15:20:10 2012 - permalink -
    - - - http://ljouanneau.com/blog/post/2012/02/21/Autoload-avec-mod%C3%A9ration
    APC Autoload Include Optimisation PHP
  • phpEasyVCS
    Thu Oct 18 12:54:24 2012 - permalink -
    - - - http://phpeasyvcs.sourceforge.net/
    OnMyServer PHP Tools VCS WebDAV
  • Recess PHP Framework
    Thu Oct 18 10:11:09 2012 - permalink -
    - - - http://www.recessframework.org/
    Framework PHP REST
  • Simple REST server in PHP – Supports JSON & AMF | Jacob Wright
    Thu Oct 18 10:07:58 2012 - permalink -
    - - - http://jacwright.com/250/simple-rest-server-in-php-supports-json-amf/
    Framework PHP REST
  • Sécuriser les chaines en PHP - Warrior du Dimanche

    Et si on n'a pas MySQL? Il faudrait que je check les bonnes pratiques à ce sujet.

    Fri Oct 5 00:42:17 2012 - permalink -
    - - - http://www.warriordudimanche.net/article30/securiser-les-chaines-en-php
    PHP Sanitize Security String
  • Auto_form : il fait tout le sale boulot ! v0.1 - Warrior du Dimanche

    Un formulaire à partir d'un fichier de configuration. Ce n'est pas encore ce que je veux, mais c'est bon pour l'inspiration !

    Fri Oct 5 00:38:12 2012 - permalink -
    - - - http://www.warriordudimanche.net/article51/auto-form-il-fait-tout-le-sale-boulot
    Config Form PHP Tools
  • PHP » minify_css() - Seebz Code
    Fri Oct 5 00:37:48 2012 - permalink -
    - - - http://code.seebz.net/p/minify-css/
    CSS Minify PHP
  • Protect Your Uploads Folder with .htaccess « Tom Oliver CV
    Wed Oct 3 01:05:41 2012 - permalink -
    - - - http://tomolivercv.wordpress.com/2011/07/24/protect-your-uploads-folder-with-htaccess/
    Apache Htaccess PHP Security Upload
  • php:filehosting [sebsauvage]
    Wed Oct 3 00:32:02 2012 - permalink -
    - - - http://sebsauvage.net/wiki/doku.php?id=php:filehosting
    PHP Upload
Links per page: 20 50 100
◄Older
page 3 / 4
Newer►
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation