Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Outils > Dreamweaver
Dreamweaver Forum d'entraide des utilisateurs de Adobe Dreamweaver. Avant toutes questions : FAQ Dreamweaver.
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 10/05/2007, 16h56   #1
Candidat au titre de Membre du Club
 
Inscription : janvier 2006
Messages : 47
Détails du profil
Informations forums :
Inscription : janvier 2006
Messages : 47
Points : 14
Points : 14
Envoyer un message via MSN à friiitz
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
friiitz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/05/2007, 17h10   #2
Modérateur
 
Avatar de blueice
 
Inscription : mars 2003
Messages : 3 422
Détails du profil
Informations personnelles :
Âge : 37
Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

Informations forums :
Inscription : mars 2003
Messages : 3 422
Points : 4 110
Points : 4 110
Envoyer un message via ICQ à blueice Envoyer un message via MSN à blueice Envoyer un message via Skype™ à blueice
Problème de code PHP...
__________________
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_SIGNATURE -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Dans la mesure du possible, essayez de montrer votre problème en situation réelle en nous donnant une url, que l'on puisse tester.
Pensez également à cocher

Aucun problème ne doit être résolu en MP (Message Privé) le forum est là pour ça.

Dimension Internet - Carnet Web
Imprimerie Nice
blueice est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/05/2007, 17h23   #3
Candidat au titre de Membre du Club
 
Inscription : janvier 2006
Messages : 47
Détails du profil
Informations forums :
Inscription : janvier 2006
Messages : 47
Points : 14
Points : 14
Envoyer un message via MSN à friiitz
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 :
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);
?>
friiitz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/05/2007, 17h35   #4
Modérateur
 
Avatar de blueice
 
Inscription : mars 2003
Messages : 3 422
Détails du profil
Informations personnelles :
Âge : 37
Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

Informations forums :
Inscription : mars 2003
Messages : 3 422
Points : 4 110
Points : 4 110
Envoyer un message via ICQ à blueice Envoyer un message via MSN à blueice Envoyer un message via Skype™ à blueice
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...
__________________
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_SIGNATURE -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Dans la mesure du possible, essayez de montrer votre problème en situation réelle en nous donnant une url, que l'on puisse tester.
Pensez également à cocher

Aucun problème ne doit être résolu en MP (Message Privé) le forum est là pour ça.

Dimension Internet - Carnet Web
Imprimerie Nice
blueice est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/05/2007, 18h10   #5
Candidat au titre de Membre du Club
 
Inscription : janvier 2006
Messages : 47
Détails du profil
Informations forums :
Inscription : janvier 2006
Messages : 47
Points : 14
Points : 14
Envoyer un message via MSN à friiitz
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 :
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);
?>
friiitz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/05/2007, 18h18   #6
Candidat au titre de Membre du Club
 
Inscription : janvier 2006
Messages : 47
Détails du profil
Informations forums :
Inscription : janvier 2006
Messages : 47
Points : 14
Points : 14
Envoyer un message via MSN à friiitz
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.

@+
friiitz est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 19h08.


 
 
 
 
Partenaires

Hébergement Web