Php shell
lamou23
Messages postés
218
Statut
Membre
-
dubcek Messages postés 19025 Date d'inscription Statut Contributeur Dernière intervention -
dubcek Messages postés 19025 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
je veux écrire dans un fichier qui existe dans /home/linux à partir d'une page php,j'ai écrit ceci dans page.php:
<html>
<body>
<form name="form1" method="post">
<input type="text" name="val" />
<input type="submit" name="bouton" value="valider"/>
<?
$a="lamou23";
exec("./script.sh $a");
?>
</form>
</body>
</html>
************script.sh contient ceci*********
#!/bin/bash
echo $1 >> fiche.txt
bien sur j'ai mis chmod +x script.sh
en exécutant la page php,je trouve pas "lamou2"" dedans????
aidez moi s'il vous plait à résoudre mon problème
je veux écrire dans un fichier qui existe dans /home/linux à partir d'une page php,j'ai écrit ceci dans page.php:
<html>
<body>
<form name="form1" method="post">
<input type="text" name="val" />
<input type="submit" name="bouton" value="valider"/>
<?
$a="lamou23";
exec("./script.sh $a");
?>
</form>
</body>
</html>
************script.sh contient ceci*********
#!/bin/bash
echo $1 >> fiche.txt
bien sur j'ai mis chmod +x script.sh
en exécutant la page php,je trouve pas "lamou2"" dedans????
aidez moi s'il vous plait à résoudre mon problème
A voir également:
- Php shell
- Classic shell - Télécharger - Personnalisation
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Secure shell - Télécharger - Divers Web & Internet
- Shell infrastructure host c'est quoi - Guide