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

Langage PHP Discussion :

Fatal error: Call to undefined function


Sujet :

Langage PHP

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 23
    Points : 10
    Points
    10
    Par défaut Fatal error: Call to undefined function
    Bonjour sabotage,

    La connexion à ma base de données se faisait bien en local . Je viens de mettre le début de site en ligne et les pages où la connexion à la base de données est nécessaire affichent le message

    Fatal error: Call to undefined function: virtual() in /homepages/20/d321254044/htdocs/fds/seloger.php on line 1

    pouvez m'aider?
    Merci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <?php virtual('/fds/Connections/fdsweb.php'); ?>

  2. #2
    Modérateur
    Avatar de sabotage
    Homme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    29 208
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2005
    Messages : 29 208
    Points : 44 155
    Points
    44 155
    Par défaut
    Remplace virtual() par include()

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 23
    Points : 10
    Points
    10
    Par défaut include
    Merci sabotage de m'avoir répondu
    en faisant include je n'ai plus de message d'erreur mais ma page est blanche. peux-tu voir ce qui ne va pas dans mon code? merci

    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
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    <?php include('/fds/Connections/fdsweb.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      if (PHP_VERSION < 6) {
        $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_fdsweb, $fdsweb);
    $query_Rsoffredormir = "SELECT * FROM offredormir";
    $Rsoffredormir = mysql_query($query_Rsoffredormir, $fdsweb) or die(mysql_error());
    $row_Rsoffredormir = mysql_fetch_assoc($Rsoffredormir);
    $totalRows_Rsoffredormir = mysql_num_rows($Rsoffredormir);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Document sans titre</title>
    <link href="/fds/css/style.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="/fds/css/seloger.css" rel="stylesheet" type="text/css" media="screen" />
    <script src="/fds/SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
     
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    function MM_effectBlind(targetElement, duration, from, to, toggle)
    {
    	Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    }
    //-->
    </script>
    <link href="/fds/css/news.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body onload="MM_preloadImages('/fds/images/accueilvert.jpg','/fds/images/selogervert.jpg')">
    <div id="header"></div>
    <div id="menu">
      <div id="accueil"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/accueilvert.jpg',1)"><img src="images/accueilrose.jpg" name="Image9" width="136" height="69" border="0" id="Image9" /></a></div>
      <div id="senourrir"><a href="senourrir.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/senourrirvert.jpg',1)"><img src="images/senourrirrose.jpg" name="Image2" width="100" height="69" border="0" id="Image2" /></a></div>
      <div id="seloger"><img src="images/selogervert.jpg" name="Image3" width="91" height="69" border="0" id="Image3" /></a></div>
       <div id="shabiller"><a href="shabiller.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/shabillervert.jpg',1)"><img src="images/shabillerrose.jpg" name="Image4" width="88" height="69" border="0" id="Image4" /></a></div>
      <div id="sesoigner"><a href="sesoigner.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/sesoignervert.jpg',1)"><img src="images/sesoignerrose.jpg" name="Image5" width="107" height="69" border="0" id="Image5" /></a></div>
      <div id="sedeplacer"><a href="sedeplacer.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/sedeplacervert.jpg',1)"><img src="images/sedeplacerrose.jpg" name="Image6" width="115" height="69" border="0" id="Image6" /></a></div>
      <div id="avoirdelargent"><a href="avoirdelargent.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/avoirdelargentvert.jpg',1)"><img src="images/avoirdelargentrose.jpg" name="Image7" width="147" height="69" border="0" id="Image7" /></a></div>
      <div id="contact"><a href="contact.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/contactvert.jpg',1)"><img src="images/contactrose.jpg" name="Image8" width="116" height="69" border="0" id="Image8" /></a></div>
    </div>
    <div id="conteneur">
    <div class="titregiddyupstd24blanc" id="date"> <?php INCLUDE ("scriptdate.php");?></div>
    <div id="colonnerecherche">
    <div id="titrevousrecherchez"><img src="/fds/images/recherchelogement.png" width="210" height="30" border="0" /></div>
    <form action="selogerreponses.php" method="post" name="recherche" target="_blank">
    <div class="palatino14gris" id="vousetes" onclick="MM_effectBlind(this, 1000, '0%', '100%', false)" > 
    <span class="titregiddyupstd24blanc" >Vous êtes</span><br /br>
    <input name="homme" type="checkbox" value="homme" />un homme<br /br>
    <input name="femme" type="checkbox" value="femme" />une femme<br /br>
    <input name="couple" type="checkbox" value="couple" />un couple<br /br></div>
    <div class="palatino14gris" id="vousavez" onclick="MM_effectBlind(this, 1000, '0%', '100%', false)" > 
    <span class="titregiddyupstd24blanc" >Vous avez</span><br /br>
    <input name="enfants" type="checkbox" value="enfants" />vous avez des enfants<br /br>
    <input name="animaux" type="checkbox" value="animaux" />vous avez des animaux<br /br></div> 
    <div class="palatino14gris" id="vouscherchez" onclick="MM_effectBlind(this, 1000, '0%', '100%', false)" > 
    <span class="titregiddyupstd24blanc">Vous cherchez</span><br /br> 
    <input name="foyer" type="checkbox" value="foyer" />un foyer<br /br>
    <input name="chambre" type="checkbox" value="chambre" />une chambre<br /br>
    <input name="logement" type="checkbox" value="logement" />un logement<br /br></div>
    <div id="validez"   onclick="MM_effectBlind(this, 1000, '0%', '100%', false)">
    <input name="validez "type="image" value="" src="/fds/images/validez.png" /></div> 
     </form>
    </div>
    <a href="/fds/selogerradios.php" title="selogerradios">
    <div id="lesradios">
      <p class="palatino16blanc">&nbsp;</p>
      <p class="palatino16blanc">Emissions radios <br /br> sur le logement</p>
    </div></a>
    <a href="/fds/selogervideos.php" title="selogervideos">
    <div id="lesvideos">
      <p class="palatino16blanc">&nbsp;</p>
      <p class="palatino16blanc">Les dernières vidéos<br /br> sur le logement</p>
    </div></a>
    <div class="palatino16blanc" id="assologsurtoulouse">
      <p>Les associations sur le logement</p>
     
    <a href="http://www.droitaulogement.org/+-Toulouse-+.html">
    <div id="dal">
      <div id="daladresse">Droit Au Logement</div>
     </div>
     </a> 
     
    <a href="http://www.lesenfantsdedonquichotte.com/"> <div id="asso2">
       <div id="asso2adresse">Les enfants de Don Quichotte</div>
     </div> </a> 
     
    <a href="http://www.habitat-humanisme.org/midi-pyrenees/accueil"> <div id="asso3">
       <div id="asso3adresse">Habitat et Humanisme</div>
     </div></a> 
     
     
    <a href="http://www.fondation-abbe-pierre.fr/index.php"><div id="asso4">
       <div id="asso4adresse">Fonfation Abbé Pierre<br /br> pour le logement</div>
     </div></a> 
    </div>
     
     
    <div class="palatino16blanc" id="logetlois">Les lois sur le logement</div>
    <div id="proposerunlogement">
    <div id="titrevousproposez"><img src="/fds/images/proposerunlogement.png" width="470" height="30" /></div>
    <form method="POST" name="offredormir">
      <div class="palatino14gris" id="vousetesoffre"><span class="titregiddyupstd24blanc" >Vous êtes</span><br />
    <table width="79%" border="0">
      <tr>
        <td width="25%">&nbsp;</td>
        <td width="75%"><select name="identite" id="identite">
          <option value="m">M</option>
          <option value="mme">Mme</option>
          <option value="melle">Melle</option>
          <option value="societe">Société</option>
    </select></td>
      </tr>
      <tr>
        <td><label for="nom">nom</label></td>
        <td><input type="text" name="nom" id="nom" /></td>
          </tr>
      <tr>
        <td><label for="adresse">adresse</label></td>
        <td><input type="text" name="adresse" id="adresse" /></td>
      </tr>
      <tr>
        <td><label for="tel">tél</label></td>
        <td><input type="text" name="tel" id="tel" /></td>
      </tr>
      <tr>
        <td><label for="email">email</label></td>                        
        <td><input type="text" name="email" id="email" /></td>
      </tr>
    </table>
    </div>
       <div class="palatino14gris" id="lelogement"><span class="titregiddyupstd24blanc" >Vous proposez</span><br />    
       <table width="97%" border="0">
      <tr>
        <td width="50%">&nbsp;</td>
        <td width="50%"><select name="typedelogement" id="typedelogement">
          <option value="chambre">Chambre</option>
          <option value="studioT1">Studio ou T1</option>
          <option value="T2">T2</option>
          <option value="T3">T3</option>
          <option value="T4">T4</option>
          <option value="maison">Maison</option>
    </select></td>
      </tr>
      <tr>
        <td><label for="vide">vide ou meublé</label></td>
        <td><select name="vide" id="vide">
          <option value="vide">Vide</option>
          <option value="meuble">Meublé</option>
    </select></td>
      </tr>
      <tr>
        <td valign="top">commentaire </td>
        <td><textarea name="commentaire" id="commentaire" cols="15" rows="4"></textarea></td>
      </tr>
       </table>
       </div>
       <div id="validezoffre">
         <input name="validez 2" type="image" value="" src="/fds/images/validezvotreproposition.png" />
       </div>
    </form>
    </div>
    <div id="colonnenews">
     <img src="/fds/images/presseinfo.png" width="280" height="30" border="0" />
      <div id="articles">
    <?php 
    include("scriptnews1.php"); 
    include("scriptnews2.php"); 
    include("scriptnews3.php");
    include("scriptnews4.php"); 
    ?>
       </div> 
      </div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($Rsoffredormir);
    ?>

  4. #4
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 23
    Points : 10
    Points
    10
    Par défaut include à jour
    Sabotage,
    j'ai compris. J'ai fait

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <?php include('fdsweb.php'); ?>
    en sortant fdsweb de Connections. ça marche. Autrement en le laissant dans fds/Connections/ rien n'apparait.
    Je te laisse tout de même mon code où il doit y avoir plein d'approximations.
    le résultat de la page est à leroymichel.com/fds/seloger.php (si tu as le temps)
    ENCORE MERCI POUR TON AIDE
    ça m'encourage à avancer.

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

Discussions similaires

  1. Fatal error: Call to undefined function: () in
    Par Shyboy dans le forum Langage
    Réponses: 10
    Dernier message: 10/07/2006, 20h43
  2. [XML] [XSLT] Fatal error: Call to undefined function xslt_create()
    Par fadex dans le forum Bibliothèques et frameworks
    Réponses: 5
    Dernier message: 05/07/2006, 12h34
  3. Réponses: 3
    Dernier message: 13/05/2006, 15h48
  4. Réponses: 3
    Dernier message: 21/03/2006, 14h21
  5. Réponses: 11
    Dernier message: 08/12/2005, 16h54

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