Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problême pour faire fonctionner le php !!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
axl the mux
n00b
n00b


Joined: 26 Aug 2003
Posts: 3

PostPosted: Fri Sep 26, 2003 8:48 pm    Post subject: Problême pour faire fonctionner le php !! Reply with quote

Bonjour,

j'ai installé php et apache2 mysql en faisant

USE="apache2 php mysql" emerge mysql apache mod_php

quand je fais un fichier avec phpinfo() dedans ca marche donc php fonctionne.

Par contre j'ai écris le script suivant pour tester:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?
print("val=".$val);

if($val=="youpi")
print("youpi");
else
print("pas youpi");

if($val=="piyou")
print("piyou");
else
print("pas piyou");
?>


<p>Salut</p>
<p>&</p>
<p>On fait un test</p>
<p>&</p>
<p><a href="test.php?val=youpi">youpi</a></p>
<p>&</p>
<p><a href="test.php?val=piyou">piyou</a></p>
</body>
</html>


Quand je clique sur un lien je reviens sur la page avec la variable val renseigné.

Dans mon cas le texte ne change jamais.

C'est comme s'il ne prenais pas en compte tout ce qu'il y a derriere ?

j'ai mis le même script sous free et ca marche donc ca vient bien de mon serveur.

Avez vous une idée SVP ?

Merci d'avance
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum