IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Dreamweaver Discussion :

Serveur de production page ne s'affiche pas


Sujet :

Dreamweaver

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 47
    Points : 46
    Points
    46
    Par défaut Serveur de production page ne s'affiche pas
    Bonjour,

    J'ai un serveur Wamp installé sur ma machine de dévellopement. Tout fonctionne bien, je crée mes pages sous dreamweaver 8.0 et cela s'affiche correctement sour ie ou FF.

    J'envoi mes pages sur mon serveur de production Red Hat entreprise linux 4 avec php 4 et mysql 5. La page affiché reste blanche.

    Par contre j'enlève mon code de connexion a la base de donnée de ma page index.php. (le code php qui se trouve au-dessus de la balise <html> ) et la ma page s'affiche. Malheuresement j'ai besoin de mon code php qui me connect a ma base de donnée.

    Avez-vous une idée d'ou cela viens-t-il? Est-ce parce que j'utilise php en version 4? ou est-ce un problème de paramètrage d'apache sur mon serveur de prod?

    Merci d'avance

    Fredo

  2. #2
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 487
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 487
    Points : 5 134
    Points
    5 134
    Par défaut
    Problème de code PHP...

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 47
    Points : 46
    Points
    46
    Par défaut
    Voila mon code avant la balise HTML. Je ne vois pas le problème.
    Surtout que cela fonctionne bien sur mon serveur WAMP.

    En tout cas déja merci pour ta réponse. Mais si tu peux m'expliquer ce qui vas pas dans mon code, ça serai encore mieux

    Code php : 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
    <?php require_once('Connections/iatoo.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
     
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
     
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
     
    mysql_select_db($database_iatoo, $iatoo);
    $query_Recordset1 = "SELECT `description`, lastimportdate FROM reference";
    $Recordset1 = mysql_query($query_Recordset1, $iatoo) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>

  4. #4
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 487
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 487
    Points : 5 134
    Points
    5 134
    Par défaut
    Je vois pas à priori d'erreur, mais ca sent le code DW, es-tu sûr d'avoir uploadé ton dossier "Connections".
    A mon avis c'est une simple bêtise...

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 47
    Points : 46
    Points
    46
    Par défaut Oui, c'est du code DW :)
    Non j'ai tout bien copié. Je ne vois vraiment pas. Le serveur ne doit peut étre pas interprété quelque chose? J'ai pourtant php et php_mysql .
    En tout les cas, effectivement, lorsqu'il y a une erreur dans le code php, le serveur affiche une page ou un bout de page blanche!

    Pour info voila tout le code de ma page:

    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
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    <?php require_once('Connections/iatoo.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
    
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
    
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    
    mysql_select_db($database_iatoo, $iatoo);
    $query_Recordset1 = "SELECT `description`, lastimportdate FROM reference";
    $Recordset1 = mysql_query($query_Recordset1, $iatoo) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?><html>
    
    <head>
    <title>Projet iatoo - accueil</title>
    <link href="http://10.169.80.49/styles/styles.css" rel="stylesheet" type="text/css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    body {
    	background-image: url(images/2003_fond.gif);
    	background-repeat: repeat;
    }
    .Style1 {font-size: 24pt}
    .Style2 {font-size: 9pt}
    -->
    </style>
    
    </head>
    
    <body>
    <table width="780" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="80"><img src="images/2003_logo.gif" width="80" height="80"></td>
        <td width="500"><div align="center" class="orange Style1">iatoo</div></td>
        <td><a href="http://intranoo.francetelecom.fr/intranoo-ie.html"><img src="images/2003_retour_intranet.gif" border="0" width="200" height="80"></a></td>
      </tr>
      <tr>
        <td><img src="http://10.169.80.49/images/espaceur.gif" height="30"></td>
        <td><p align="center" class="texte12gris">Bienvenue sur le site du projet iatoo : </p>
            <marquee onMouseOver="this.stop()" onMouseOut="this.start()" scrollamount="1" scrolldelay="-0003" direction="up" height="30">
            <div align="center">
              <p><span class="texte12gris"><span class="orange">i</span>dentification des <span class="orange">a</span>nomalies <span class="orange">t</span>rouv&eacute;es entre <span class="orange">o</span>utils <span class="orange">o</span>p&eacute;rationnels</span></p>
            </div>
          </marquee></td>
        <td><div align="center"><a href="mailto:frederic1.klein@orange-ftgroup.com" class="blanc">Contactez-nous</a></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><p>&nbsp;</p>
        <p>&nbsp;</p></td>
        <td></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="center">
          <table width="300" border="1" cellspacing="1" bordercolor="#FF6600">
            <tr bordercolor="#FF6600">
              <td bordercolor="#F2F2F2"><p align="center">&nbsp;</p>
                <p align="center"><span class="texte14">Application</span> : <a href="http://10.169.80.49:8080" target="_blank" class="texte14">iatoo</a></p>
                <p align="center">&nbsp;</p>
                <p align="center"><span class="texte14">Aide</span> : <span class="texte14"><a href="http://10.169.80.49/wiki" target="_blank">Wiki</a></span></p>
                <p align="center">&nbsp;</p></td>
            </tr>
          </table>
          </div></td>
        <td></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><p align="center">&nbsp;</p>
          <p align="center">Nombre de r&eacute;f&eacute;rentiels en base : <?php echo $totalRows_Recordset1 ?> </p>
          <table width="300" border="1" align="center" cellspacing="1" bordercolor="#FF6600">
            <tr>
              <td width="168" bordercolor="#F2F2F2" class="petit"><div align="center" class="orange">
                <div align="center" class="petit">
                  <div align="left" class="petit">R&eacute;f&eacute;rentiels import&eacute;s </div>
                </div>
              </div></td>
              <td width="128" bordercolor="#F2F2F2" class="petit">Date d'import </td>
            </tr>
            <?php do { ?>
              <tr>
                <td bordercolor="#F2F2F2" class="petit"><span class="orange"><?php echo $row_Recordset1['description']; ?></span></td>
                <td bordercolor="#F2F2F2" class="petit"><?php echo $row_Recordset1['lastimportdate']; ?></td>
              </tr>
              <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
          </table>
          <p align="center">&nbsp;</p>
        <p align="center"><span class="petit Style2">Administration</span> : <span class="texte12 Style2"><a href="http://10.169.80.49/mv" class="orange">Audience de l'application</a></span></p>
        <p align="center">&nbsp;</p></td>
        <td></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="center" class="gris">
          <p>Projet iatoo 2007 </p>
          </div></td>
        <td><div align="center"><a href="mailto:frederic1.klein@orange-ftgroup.com" class="blanc"></a></div></td>
      </tr>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 47
    Points : 46
    Points
    46
    Par défaut [Résolu]
    Dans Mon script de connexion a la base donnée, il y avait le mauvais mdp. LOOL.
    Le mot de passe du serveur de dev et de prod ne sont pas les même. Merci de m'avoir mis sur la piste.

    @+

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. La page ne s'affiche pas sous easy php 1-8 avec htaccess
    Par Alexandrebox dans le forum Apache
    Réponses: 9
    Dernier message: 23/11/2007, 16h34
  2. [MySQL] La page ne s'affiche pas avec ce bout de code
    Par mimagyc dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 12/08/2007, 23h56
  3. Réponses: 35
    Dernier message: 18/06/2007, 19h21
  4. <html:errors /> Ma page ne s'affiche pas
    Par Zanton dans le forum Struts 1
    Réponses: 5
    Dernier message: 10/10/2006, 10h33
  5. Réponses: 9
    Dernier message: 04/10/2005, 19h39

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo