Mon script php ne fonctionne plus sur chez mon hébergeur

BberXIII81
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 15:36

Bonjour,
Mon script d'inclusion tester avec easyphp ne fonctionne plus une fois chez mon hébergeur 1&1
- Mon hébergeur supporte php 3, 4 et 5
- Easyphp utilise php 4.3.10
- les url de mes pages sont correctes
- tout les fichier sont présents
D'où cela vient-il?

ViPHP
ViPHP | 2144 Messages

28 mai 2007, 15:42

Il faut que tu nous dises ce qui ne fonctionne pas exactement (messages d'erreurs, etc...) si tu veux qu'on puisse t'aider.

BberXIII81
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 16:04

Comme vous pouvez le voir sur http://www.puissance13.com il n'y a aucun message d'erreur et rien ne s'inclue au dessus de "revenir en haut" comme quand j'utilise easyphp.[/url]

ViPHP
ViPHP | 2144 Messages

28 mai 2007, 16:07

Sans code, et sans plus de détails sur l'architecture du site, on ne peut va pas pouvoir t'aider... :wink:

Invité
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 16:13

Pour voir le code y a 2 solutions:
Soit je colle tout sur le forum (c'est assez costaud et les modérateurs ne vont peut-être pas apprécier)
soit on télécharge le fichier à partir du site
Laquelle vous préfèrerez?

BberXIII81
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 16:33

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="fr">
  <head>
    <title>PUISSANCE XIII - Tout le rugby à 13.</title>
    <meta name="generator" content="HTML Tidy for Windows (vers 13 May 2007), see www.w3.org">
    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
    <meta content="BberXIII81" name="author">
    <meta content="Découvrez ou redécouvrez tout le rugby à 13, l'autre rugby, le rugby du futur, le sport spectacle par exélence." name="description">
    <script type="text/javascript">
		<!--
		url = window.location;
		titre = document.title;
		sujet = "Regardez ce site!";
		function sendUrl(){ window.location = "mailto:"+prompt('Entrez l\'adresse email de la personne a qui vous désirez recommander ce site','')+"?subject="+sujet+"&body=Je te recommande cette page : "+titre+" "+url; }
		//-->
    </script>
  </head>
  <body style="background-image: url(Font.jpg); direction: ltr;">
    <div style="text-align: center;">
      <a name="Haut_de_page" id="Haut_de_page"></a><br>
      <img style="width: 666px; height: 92px;" alt="" src="Banniere.jpeg"><br>
      <br>
      <table style="text-align: left; background-color: rgb(255, 255, 255); width: 100%;" border="1" cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td colspan="3" rowspan="1">
              <table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td>
                      <form method="get" action="http://www.puissance13.com/index.php?page=1">
                        <table border="0">
                          <tbody>
                            <tr>
                              <td align="left" valign="top">
                                <a href="http://www.google.com/"><img src="http://www.google.com/logos/Logo_25wht.gif" alt="Google"></a>
                              </td>
                              <td>
                                <input name="domains" value="www.puissance13.com" type="hidden">
								<label for="sbi" style="display: none;">Entrez les termes que vous recherchez.</label>
								<input name="q" size="31" maxlength="255" value="" id="sbi" type="text">
								<label for="sdd" style="display: none;">Envoyer un formulaire de recherche</label>
								<input title="Rechercher"value="Rechercher" id="sdd" name="sa" alt="" src="rechercher.gif" type="image">
                              </td>
                              <td>
                                <table>
                                  <tbody>
                                    <tr>
                                      <td>
                                        <input name="sitesearch" value="" checked="checked" id="ss0" type="radio">
										<label style="color: rgb(255, 102, 0); font-weight: bold;" for="ss0" title="Rechercher sur le Web">WEB</label>
                                      </td>
                                      <td>
                                        <input name="sitesearch" value="www.puissance13.com" id="ss1" type="radio">
										<label style="font-weight: bold; color: rgb(255, 102, 0);" for="ss1" title="Rechercher sur PUISSANCE XIII">PUISSANCE XIII</label>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
								<input name="client" value="pub-6415261799158651" type="hidden">
								<input name="forid" value="1" type="hidden">
								<input name="ie" value="ISO-8859-1" type="hidden">
								<input name="oe" value="ISO-8859-1" type="hidden">
								<input name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11" type="hidden">
								<input name="hl" value="fr" type="hidden">
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </form>
                    </td>
                    <td style="width: 167px;">
                      <a href="mailto:[email protected]">
					  <img title="Contater le webmaster - [email protected]." style="border: 0px solid ; width: 18px; height: 12px;" alt="" src="Contact.GIF"></a>
					  <a href="index.php?page=2">
					  <img onclick="window.external.AddFavorite('http://www.puissance13.com', 'PUISSANCEXIII-Tout le rugby à 13')" style="border: 0px solid ; width: 17px; height: 15px;" title="Marquer cette page - Ctrl + D." alt="" src="Favoris.GIF"></a>
					  <a href="index.php?page=3"><img onclick="sendUrl()" style= "border: 0px solid ; width: 25px; height: 18px;" title="Recommander ce site." alt="" src= "Recommander.GIF"></a>
					  <a href="index.php?page=4">
					  <img title="A propos du site." style= "border: 0px solid ; width: 35px; height: 19px;" alt="" src="A%20propos.gif"></a>
					  <a href="index.php?page=5">
					  <img title="Syndications Flux RSS XML ATOM." style="border: 0px solid ; width: 20px; height: 20px;" alt="" src="Flux.png"></a>
					  <a href="index.php?page=6">
					  <img onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.puissance13.com');" style="border: 0px solid ; width: 20px; height: 20px;" title="Mettre ce site en page de démarrage - I.E." alt="" src="D%E9marrage.gif"></a>
                    </td>
                    <td style="width: 55px;">
                      <a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=fr&langpair=fr|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=fr&langpair=fr|en&tbb=1&ie='+e;};+e;};">
                      <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="En.GIF"></a>
					  <a href="http://fr.babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fwww.puissance13.com&lp=fr_es&btnTrUrl=Traduire">
					  <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="Es.GIF"></a>
					  <a href="http://fr.babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fwww.puissance13.com&lp=fr_it&btnTrUrl=Traduire">
					  <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="It.gif"></a>
					  <a href="http://fr.babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fwww.puissance13.com&lp=fr_nl&btnTrUrl=Traduire">
					  <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="Nl.gif"></a>
					  <a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=fr&langpair=fr|de&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=fr&langpair=fr|de&tbb=1&ie='+e;};">
					  <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="De.GIF"></a>
					  <a href="http://www.puissance13.com/"><img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="Fr.GIF"></a>
					  <a href="http://fr.babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fwww.puissance13.com&lp=fr_pt&btnTrUrl=Traduire">
					  <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="Pt.gif"></a>
					  <a href="http://fr.babelfish.yahoo.com/">
					  <img style="border: 0px solid ; width: 13px; height: 11px;" alt="" src="Etc.png"></a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td style="width: 140px; text-align: left; vertical-align: top;" colspan="1" rowspan="4">
              <div style="text-align: center; font-weight: bold; color: rgb(255, 102, 0);">MENU</div>
              <hr style="width: 100%; height: 2px;">
              <div style="text-align: left;">
                <span style="font-weight: bold; color: rgb(255, 102, 0);">Accueil</span><br>
                - <a href="index.php?page=10">Bienvenue</a><br>
                - <a href="index.php?page=11">Le rugby à XIII</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Actualités</span><br>
                - <a href="index.php?page=12">Nationales</a><br>
                - <a href="index.php?page=13">Evènements</a><br>
                - <a href="index.php?page=14">Internationales</a><br>
                - <a href="index.php?page=15">Classements</a><br>
                - <a href="index.php?page=16">Résultats</a><br>
                - <a href="index.php?page=17">Zooms</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Règles du jeu</span><br>
                - <a href="index.php?page=18">Internationales</a><br>
                - <a href="index.php?page=19">Par catégories</a><br>
                - <a href="index.php?page=20">Variantes</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Compétitions</span><br>
                - <a href="index.php?page=21">Mondiales</a><br>
                - <a href="index.php?page=22">Européennes</a><br>
                - <a href="index.php?page=23">Océaniennes</a><br>
                - <a href="index.php?page=24">Autres</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Histoire</span><br>
                - <a href="index.php?page=25">Origines</a><br>
                - <a href="index.php?page=26">Chronologie</a><br>
                - <a href="index.php?page=27">Développement</a><br>
                - <a href="index.php?page=28">Stades Mythiques</a><br>
                - <a href="index.php?page=29">Légendes</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Médiathèque</span><br>
                - <a href="index.php?page=30">Documents</a><br>
                - <a href="index.php?page=31">Radios/TV</a><br>
                - <a href="index.php?page=32">Musiques</a><br>
                - <a href="index.php?page=33">PC box</a><br>
                - <a href="index.php?page=34">Albums</a><br>
                - <a href="index.php?page=35">Vidéos</a><br>
                - <a href="index.php?page=36">Livres</a><br>
                - <a href="index.php?page=37">Jeux</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Boutiques</span><br>
                - <a href="http://www.rug13y.com/">Rug13y</a><br>
                - <a href="http://www.tenue13.com/">Tenu13</a><br>
                - <a href="http://www.ligne13rugby.com/">Ligne13</a><br>
                - <a href="http://www.treizedefrance.com/">Treize de france</a><br>
                - <a href="index.php?page=38">Puissance XIII</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Formations</span><br>
                - <a href="http://www.poleespoirs13.com/">Pôles Espoirs</a><br>
                - <a href="index.php?page=39">Puissance XIII</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Forums</span><br>
                - <a href="http://www.rugbyforumxiii.com/phpBB2/index.php">RugbyforumXIII</a><br>
                - <a href="index.php?page=40">Puissance XIII</a><br>
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Formulaires</span><br>
                - <a href="index.php?page=41">Nouveau club</a><br>
                - <a href="index.php?page=42">Hébergement</a><br>
                - <a href="index.php?page=43">Formations</a><br>
                - <a href="index.php?page=44">Partenaire</a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <a href="index.php?page=45">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">Billeteries</span></a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <a href="index.php?page=46">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">Annuaires</span></a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <a href="index.php?page=47">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">Hébergés</span></a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <a href="index.php?page=48">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">Sondages</span></a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <a href="index.php?page=49">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">Concours</span></a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <a href="index.php?page=50">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">Dossiers</span></a><br style="color: rgb(255, 102, 0); font-weight: bold;">
                <span style="color: rgb(255, 102, 0); font-weight: bold;">Divers</span><br>
                - <a href="index.php?page=51">Cartographie</a><br>
                - <a href="index.php?page=52">Informatique</a><br>
                - <a href="index.php?page=53">Rencontres</a><br>
                - <a href="index.php?page=54">Télévision</a><br>
                - <a href="index.php?page=55">Actualités</a><br>
                - <a href="index.php?page=56">Musiques</a><br>
                - <a href="index.php?page=57">Top sites</a><br>
                - <a href="index.php?page=58">Voyages</a><br>
                - <a href="index.php?page=59">Humour</a><br>
                - <a href="index.php?page=60">Cinéma</a><br>
                - <a href="index.php?page=61">Bourse</a><br>
                - <a href="index.php?page=62">Mobile</a><br>
                - <a href="index.php?page=63">T'chat</a><br>
                - <a href="index.php?page=64">Sport</a><br>
                - <a href="index.php?page=65">Jeux</a><br>
                <a href="index.php?page=66">
				<span style="color: rgb(255, 102, 0); font-weight: bold;">EspacePresse</span></a>
              </div>
            </td>
            <td style="text-align: center; vertical-align: top;" colspan="1" rowspan="4">
              <div style="text-align: left;">
                <?php 
$Num = isset($_GET['page'])?intval($_GET['page']):0;
$pages = array(
     0 => 'bienvenue.html',
     1 => 'zoom.html',
     2 => 'concours.html',
	 3 => 'bourse.html'
);
if( $Num>=count($pages) )
{
     $Num = 0;
}
include($pages[$Num]); 
?> <br>
              </div><br>
              <a href="#Haut_de_page">Revenir en haut</a>
            </td>
            <td style="height: 150px; width: 140px; text-align: center; vertical-align: top;">
              <span style="font-weight: bold; color: rgb(255, 102, 0);">PARTENAIRES</span>
              <hr style="width: 100%; height: 2px;">
              <a href="http:/www.ffr13.com"><img title="Fédération française de rugby à 13 - www.ffr13.com. style="border: 0px solid ; width: 130px; height: 74px;" alt="" src="Ffr13.jpg"></a><br>
              <a href="index.php?page=7">Les parrains</a><br>
              <a href="index.php?page=8">Tout les partenaires</a>
            </td>
          </tr>
          <tr>
            <td style="width: 140px; text-align: center; vertical-align: top;">
              <span style="font-weight: bold; color: rgb(255, 102, 0);">ANNONCEURS</span>
              <hr style="width: 100%; height: 2px;">
              <table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
                <tbody>
                  <tr>
                    <td>
                      <script type="text/javascript">
						<!--
                        google_ad_client = "pub-6415261799158651";
                        google_ad_width = 120;
                        google_ad_height = 90;
                        google_ad_format = "120x90_0ads_al_s";
                        google_ad_channel = "";
                        //-->
                      </script>
					  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					  </script>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <script type="text/javascript">
<!--
                      google_ad_client = "pub-6415261799158651";
                      google_ad_width = 120;
                      google_ad_height = 600;
                      google_ad_format = "120x600_as";
                      google_ad_type = "text_image";
                      google_ad_channel = "";
                      //-->
                      </script>
					  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					  </script>
                    </td>
                  </tr>
                </tbody>
              </table><br>
            </td>
          </tr>
          <tr>
            <td style="height: 150px; width: 140px; text-align: center; vertical-align: top;">
              <span style="font-weight: bold; color: rgb(255, 102, 0);">ASSOCIATIONS</span>
              <hr style="width: 100%; height: 2px;">
              <img title="XIII Actif." style="width: 109px; height: 68px;" alt="" src="XIIIactif.jpeg"><br>
              <a href="index.php?page=9">Plus d'associations</a>
            </td>
          </tr>
          <tr>
            <td style="height: 150px; width: 140px; text-align: center;">
              <script type="text/javascript">
				<!--
                google_ad_client = "pub-6415261799158651";
                google_ad_width = 125;
                google_ad_height = 125;
                google_ad_format = "125x125_as_rimg";
                google_cpa_choice = "CAAQ3c7nzwEaCM2cMtnyZm-yKNm493MwAA";
                google_ad_channel = "";
                //-->
              </script>
			  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
			  <a href="http://1and1.fr/xml/order?k_id=13909776">
			  <img src="http://banner.1and1.fr/xml/banner?size=7&number=1" height="28" width="140" alt=""></a>
            </td>
          </tr>
          <tr>
            <td style="text-align: center;" colspan="3" rowspan="1">
              <span style="color: rgb(255, 102, 0);">©Copyright, www.puissance13.com, 2007, tout droits réservés.</span>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>
Le voici

ViPHP
ViPHP | 2144 Messages

28 mai 2007, 16:51

Tu sais que ton include ne se fait. A partir de là, il faut que tu découvres pourquoi il ne se fait pas, en réalisant différents testes pour isoler le problème.

Par exemple,afficher la variable $_GET['page'] et voir ce qu'elle contient, afficher les résultats intermédiaires des tests qui précèdent l'include.

BberXIII81
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 17:06

Je viens d'envoyer sur le serveur un simple fichier test.php contenant seulement
<?php include('bienvenue.html'); ?>
et rien ne s'affiche. A partir de cette page vierge j'observe le code source et .... le script php a disparu!!!!
allez voir http://www.puissance13.com/test.php
Sans surprise je suis aller voir le code source de index.php avec mon navigateur le script php a disparu lui aussi.

ViPHP
ViPHP | 2144 Messages

28 mai 2007, 17:45

Je comprends pas ce que tu veux dire: c'est normal que si tu visualise une page php avec ton browser web, le code php ne soit pas visible, puisqu'il a déja été exécuté par le serveur.

BberXIII81
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 18:13

Ah pardon, je savais pas

BberXIII81
Invité n'ayant pas de compte PHPfrance

28 mai 2007, 18:56

Comment je fait ça?

ViPHP
ViPHP | 2144 Messages

28 mai 2007, 22:06

Je t'ai donné, il y a deux messages, un début de débugage à suivre, qui te donne une idée de ce que tu peux faire pour essayer d'isoler le problème.
En fonction des découvertes que tu auras faites, on pourra éventuellement te donner des conseils pour résoudre le problème.
Maintenant c'est à toi de jouer...

BberXIII81
Invité n'ayant pas de compte PHPfrance

29 mai 2007, 19:00

Problème résolu, il suffisait de réécrire l'url complète des fichier à inclure "http://www.monsite.com/bienvenue.html", il devait y avoir une redirection ou quelque chose dans le genre chez l'hébergeur qui ne permettait pas l'utilisation de "bienvenue.html" pourtant j'utilise ce genre d'url pour mes images et cela fonctionne!!! Merci à tous

Modérateur PHPfrance
Modérateur PHPfrance | 6037 Messages

29 mai 2007, 23:52

Modération :
Puisque ta question est résolue, j'ajoute le tag [Résolu]
pour indiquer aux personnes qui voudront consulter ce sujet qu'il contient une solution.

Tu peux réaliser cette opération toi-même
en cliquant sur le bouton [Mettre Résolu] qui s'affiche en haut à gauche de ce sujet
si tu as posté le 1er message en tant que membre (inscrit et identifié).

Alors... inscris-toi !!! ;)
Règle n°2 du webmaster : Toujours commencer par le HTML qu'on veut obtenir....toujours ! :priere:
J'aime apprendre de nouvelles choses.