Bonjour,
J'ai commencé un site ce matin, et j'ai pas remarqué mais j'ai mon hébergeur qui est sous PHP5, j'en suis simplement à la gestion des liens, et il n'y à absolument rien qui se passe...J'ai cherché un bon moment sur le net mais rien trouvé...Et j'ai testé mon code sur un autre serveur qui n'est pas en PHP5 et ça fonctionne niquel...
Voici donc mon code :
PAGE.PHP
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 <? if($page=="presentation"){ include("presentation/presentation.php"); } elseif($page=="news"){ include("news/news.php"); } elseif($page=="news"){ include("news/news.php"); } elseif($page=="prestations"){ include("prestations/prestations.php"); } elseif($page=="realisations"){ include("realisations/realisations.php"); } elseif($page=="promotions"){ include("promotions/promotions.php"); } elseif($page=="guestbook"){ include("guestbook/guestbook.php"); } elseif($page=="liens"){ include("liens/liens.php"); } elseif($page=="contact"){ include("contact/contact.php"); } else{ include("presentation/presentation.php"); } ?>
INDEX_NAV.PHP
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="styles.css"/> <title>DAGAR Sarl</title> </head> <body> <table id="tabcentre" cellpadding="0" cellspacing="0"> <tr> <td colspan="11"><img src="images/degrade.jpg" width="879" height="14" /></td> </tr> <tr> <td><img src="images/normales/design_05.jpg" width="31" height="124" alt="" /></td> <td><a href="index_nav.php?page=presentation"><div id="menu1"></div></a></td> <td><a href="index_nav.php?page=news"><div id="menu2"></div></a></td> <td><a href="index_nav.php?page=prestations"><div id="menu3"></div></a></td> <td><a href="index_nav.php?page=realisations"><div id="menu4"></div></a></td> <td><a href="index_nav.php?page=promotions"><div id="menu5"></div></a></td> <td><a href="index_nav.php?page=guestbook"><div id="menu6"></div></a></td> <td colspan="2"><a href="index_nav.php?page=liens"><div id="menu7"></div></a></td> <td><a href="index_nav.php?page=contact"><div id="menu8"></div> </a></td> <td><img src="images/normales/design_14.jpg" width="28" height="124" alt="" /></td> </tr> <tr> <td colspan="11"><img src="images/degrade.jpg" width="879" height="14" /></td> </tr> <tr> <td colspan="11" align="center" bgcolor="#99CC99"><p> </p> <p> <? include ('page.php') ?> </p> <p>asdf </p> <p> </p></td> </tr> <tr> <td colspan="11"><img src="images/degrade.jpg" width="879" height="14" /></td> </tr> <tr> <td><img src="images/normales/spacer.gif" width="31" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="102" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="102" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="102" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="102" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="102" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="103" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="48" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="53" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="106" height="1" alt="" /></td> <td><img src="images/normales/spacer.gif" width="28" height="1" alt="" /></td> </tr> </table> </body> </html>
C'est donc très simple, j'ai un fichier d'index avec les différents liens et la fonction d'inclusion, et l'autre page qui permet simplement de faire la correspondance entre les pages...
Mes répertoires sont corrects, les liens aussi, je ne sais vraiment pas d'où ça viens, et la je commence vraiment à peter un câble.....Je sais pas si c'est moi qui n'est plus à la page et qui fait des trucs encore n'importe comment, mais je crois pas puisque j'ai toujours fait ça comme cela sur mes derniers sites...Et ça jouais....
Enfin bref, si vous pouvez m'aider ça serait vraiment très sympa...
A+ merci![]()
Partager