Php et shell

lamou23 Messages postés 218 Statut Membre -  
Rock_4_ever Messages postés 16 Statut Membre -
salut

j'ai un fichier test.php contenant ce qui suit:

<?php $affiche=exec("nslookup exemple.com");?>

//lorsque j'affiche le contenu de $affiche (avec echo $affiche),j'ai le résultat suivant:

server:dns Adress: 192.168.78.2 sever: exemple.com Adress:192.168.80.128

******************************************

ce que je veux moi c'est d'afficher le contenu de $affiche dans un fichier adr.txt!!!
comment le fair avec php et shell??

merci d'avance
A voir également:
  • Php et shell
  • Classic shell - Télécharger - Personnalisation
  • Expert php - Télécharger - Langages
  • Easy php - Télécharger - Divers Web &amp; Internet
  • Ssh secure shell - Télécharger - Divers Web &amp; Internet
  • Shell addition - <a href="https://forums.commentcamarche.net/forum/shell-287">Forum Shell</a>

1 réponse

Rock_4_ever Messages postés 16 Statut Membre 2
 
utilise simplement ">> adr.txt"

<?php $affiche=exec("nslookup exemple.com >> adr.txt");?>
0