Tags: script

Sort by: Date / Title /

  1. 2 months ago by spirit
    1. trap "/usr/bin/mycmd; exit 255" SIGINT SIGTERM
  2. 9 months ago by skymaxs
    Il faut créer un fichier VBS contenant ceci :
    
    ----8<------8<------8<------8<------8<------8<--
    ' *** Script start ***
    Set oShell = CreateObject("WScript.Shell")
    
    oShell.Run "toto.bat", 0, True 
    ----8<------8<------8<------8<------8<------8<--
    
    Cela permet d'exécuter toto.bat sans fenêtre de commande DOS.
  3. 9 months ago by spawnrider
    Il reste encore des améliorations à faire...
    1. function html2txt($document){
    2.         $search = array('@<script[^>]*?>.*?</script>@si', // Strip out javascript
    3.         '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly
    4.         '@<[?]php[^>].*?[?]>@si', //scripts php
    5.         '@<[?][^>].*?[?]>@si', //scripts php
    6.         '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags
    7.         '@<![\s\S]*?--[ \t\n\r]*>@', // Strip multi-line comments including CDATA
    8.         );
    9.         $text = preg_replace($search, '', $document);
    10.         return $text;
    11. }

First / Previous / Next / Last / Page 1 of 1 (3 posteets)