Pages : 1
#1 Le 07/01/2013, à 23:44
- ltsv38
[RESOLU] Apache: code PHP non exécuté
Bonjour
Je cherche à installer un serveur web sur ma plateforme Ubuntu 12.10
Le code PHP n'est pas exécuté ...
Cf exemple ci-dessous avec une mini application de test qui donne un résultat semblable
<?php
if(isset($_POST['Fct1']))
{ echo "<hr>";
echo "</br>Votre texte :{$_POST['InputText']}";
echo "<hr>";
}
?>
<h2>PHP HTML FORME 1</h2>
<form name="Information" method="POST" action="#">
Entrez votre texte :
<input name="Fullname" type="text" value="<?php echo $_POST['InputText']; ?>">
<br/>
<input name="Fct1" type="submit" value="Validation">
</form>
Dernière modification par ltsv38 (Le 08/01/2013, à 09:58)
Hors ligne
#2 Le 08/01/2013, à 00:15
- Maisondouf
Re : [RESOLU] Apache: code PHP non exécuté
Est ce que php5 est installé ?
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
#3 Le 08/01/2013, à 08:00
- ltsv38
Re : [RESOLU] Apache: code PHP non exécuté
oui : PHP 5.4.6-1ubuntu1.1 (cli)
Hors ligne
#4 Le 08/01/2013, à 09:57
- ltsv38
Re : [RESOLU] Apache: code PHP non exécuté
Résolu : après installation de libapache2-mod-php5 et de phpmyadmin
Hors ligne
#5 Le 08/01/2013, à 20:19
- Maisondouf
Re : [RESOLU] Apache: code PHP non exécuté
C'est surtout la 1ère qui était importante....
Le php5 (cli) est un interpréteur pour le terminal:
php -a
ASUS M5A88-v EVO avec AMD FX(tm)-8120 Eight-Core Processor, OS principal Precise 12.04.1 LTS 63bits½
Bricoleur, menteur, inculte, inadapté social et mythomane, enfin d'après certains....
"the secret of my form is summed up in two words, no sport" (Winston Churchill)
Hors ligne
Pages : 1