Script en php
                    
        
     
             
                    jeef06
    
        
    
                    Messages postés
            
                
     
             
            259
        
            
                                    Statut
            Membre
                    
                -
                                     
jisisv Messages postés 3678 Statut Modérateur -
        jisisv Messages postés 3678 Statut Modérateur -
        Bonjour,
J'aimerais créer un script qui permettrais :
a partir de l'url : http://www.regame.tv/liveviewstatus.php?stream_id=2886
de créer un bouton d'état automatique.
Par exemple,
- quand http://www.regame.tv/liveviewstatus.php?stream_id=2886 dit qu'il est (ONLINE) alors le bouton serais vert
- quand http://www.regame.tv/liveviewstatus.php?stream_id=2886 dit qu'il est (OFFLINE) alors le bouton serais rouge
Merci d'avance pour l'aide !!!
            
            
                
            
                
    
    
    
        J'aimerais créer un script qui permettrais :
a partir de l'url : http://www.regame.tv/liveviewstatus.php?stream_id=2886
de créer un bouton d'état automatique.
Par exemple,
- quand http://www.regame.tv/liveviewstatus.php?stream_id=2886 dit qu'il est (ONLINE) alors le bouton serais vert
- quand http://www.regame.tv/liveviewstatus.php?stream_id=2886 dit qu'il est (OFFLINE) alors le bouton serais rouge
Merci d'avance pour l'aide !!!
        A voir également:         
- Script en php
- Script vidéo youtube - Guide
- Easy php - Télécharger - Divers Web & Internet
- Ghost script - Télécharger - Polices de caractères
- Mas script - Accueil - Windows
- Expert php pinterest - Télécharger - Langages
1 réponse
                        
                    Utilise file_get_contents et preg_grep .
https://www.php.net/manual/fr/function.file-get-contents.php
https://www.php.net/manual/fr/function.preg-grep.php
                
                
    
                https://www.php.net/manual/fr/function.file-get-contents.php
https://www.php.net/manual/fr/function.preg-grep.php
