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 :

Problème d'apostrophe ?


Sujet :

Langage PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Septembre 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2011
    Messages : 15
    Par défaut Problème d'apostrophe ?
    Bonsoir, j'ai un souci avec un installation de moodle, j'ai une erreur en cour de route, voici ce qui est indiquer:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Parse error: syntax error, unexpected T_STRING in C:\wamp\www\moodle\lib\moodlelib.php(4624) : eval()'d code on line 1
    je vais donc avec netbeans à la ligne 4624 voici ce que j'ai

    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
     
    /// First check all the normal locations for the string in the current language
        $resultstring = '';
        foreach ($locations as $location) {
            $locallangfile = $location.$lang.'_local'.'/'.$module.'.php';    //first, see if there's a local file
            if (file_exists($locallangfile)) {
                if ($result = get_string_from_file($identifier, $locallangfile, "\$resultstring")) {
                    eval($result);
                    return $resultstring;
                }
            }
            //if local directory not found, or particular string does not exist in local direcotry
            $langfile = $location.$lang.'/'.$module.'.php';
            if (file_exists($langfile)) {
                if ($result = get_string_from_file($identifier, $langfile, "\$resultstring")) {
                    eval($result);
                    return $resultstring;
                }
            }
        }
    sur netbeans il y a un message d'attention avec ces 2 lignes:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
     
    if ($result = get_string_from_file($identifier, $langfile, "\$resultstring")) { //ligne 4615
    if ($result = get_string_from_file($identifier, $locallangfile, "\$resultstring")) {//ligne 4623
    je n'arrive pas à voir un problème de quote, pouvez vous me dire si vous en avez trouver un ?

    je vous remercie d'avance pour la réponse.

  2. #2
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    on line 1
    Je suis pas très bon en anglais, mais comment tu arrives à traduire 1 en 4624 ?

    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Septembre 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2011
    Messages : 15
    Par défaut
    merci de ta réponse en effet je me suis tromper j'ai été détourner par (4624) d'ailleur il veut dire quoi ce nombre ??
    voici ce qu'il y a dans ce fichier (les premières lignes)

    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
    <?php // $Id: moodlelib.php,v 1.837.2.108 2010/06/04 18:09:39 skodak Exp $
     
    ///////////////////////////////////////////////////////////////////////////
    //                                                                       //
    // NOTICE OF COPYRIGHT                                                   //
    //                                                                       //
    // Moodle - Modular Object-Oriented Dynamic Learning Environment         //
    //          http://moodle.org                                            //
    //                                                                       //
    // Copyright (C) 1999-2004  Martin Dougiamas  http://dougiamas.com       //
    //                                                                       //
    // This program is free software; you can redistribute it and/or modify  //
    // it under the terms of the GNU General Public License as published by  //
    // the Free Software Foundation; either version 2 of the License, or     //
    // (at your option) any later version.                                   //
    //                                                                       //
    // This program is distributed in the hope that it will be useful,       //
    // but WITHOUT ANY WARRANTY; without even the implied warranty of        //
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
    // GNU General Public License for more details:                          //
    //                                                                       //
    //          http://www.gnu.org/copyleft/gpl.h<?php // $Id: moodlelib.php,v 1.837.2.108 2010/06/04 18:09:39 skodak Exp $
     
    ///////////////////////////////////////////////////////////////////////////
    //                                                                       //
    // NOTICE OF COPYRIGHT                                                   //
    //                                                                       //
    // Moodle - Modular Object-Oriented Dynamic Learning Environment         //
    //          http://moodle.org                                            //
    //                                                                       //
    // Copyright (C) 1999-2004  Martin Dougiamas  http://dougiamas.com       //
    //                                                                       //
    // This program is free software; you can redistribute it and/or modify  //
    // it under the terms of the GNU General Public License as published by  //
    // the Free Software Foundation; either version 2 of the License, or     //
    // (at your option) any later version.                                   //
    //                                                                       //
    // This program is distributed in the hope that it will be useful,       //
    // but WITHOUT ANY WARRANTY; without even the implied warranty of        //
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
    // GNU General Public License for more details:                          //
    //                                                                       //
    //          http://www.gnu.org/copyleft/gpl.html                         //
    //                                                                       //
    ///////////////////////////////////////////////////////////////////////////
     
    /**
     * moodlelib.php - Moodle main library
     *
     * Main library file of miscellaneous general-purpose Moodle functions.
     * Other main libraries:
     *  - weblib.php      - functions that produce web output
     *  - datalib.php     - functions that access the database
     * @author Martin Dougiamas
     * @version $Id: moodlelib.php,v 1.837.2.108 2010/06/04 18:09voici ce qu'il y a dans les premières lignes de ce fichier:39 skodak Exp $
     * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
     * @package moodlecore
     */
     
    /// CONSTANTS (Encased in phpdoc proper comments)/////////////////////////
     
    /**
     * Used by some scripts to check they are being called by Moodle
     */
    define('MOODLE_INTERNAL', true);tml                         //
    //                                                                       //
    ///////////////////////////////////////////////////////////////////////////
     
    /**
     * moodlelib.php - Moodle main library
     *
     * Main library file of miscellaneous general-purpose Moodle functions.
     * Other main libraries:
     *  - weblib.php      - functions that produce web output
     *  - datalib.php     - functions that access the database
     * @author Martin Dougiamas
     * @version $Id: moodlelib.php,v 1.837.2.108 2010/06/04 18:09:39 skodak Exp $
     * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
     * @package moodlecore
     */
     
    /// CONSTANTS (Encased in phpdoc proper comments)/////////////////////////
     
    /**
     * Used by some scripts to check they are being called by Moodle
     */
    define('MOODLE_INTERNAL', true);

  4. #4
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    define('MOODLE_INTERNAL', true);tml
    Ben voilà
    "tml", il a rien à faire là à priori

    d'ailleur il veut dire quoi ce nombre
    Je suis Microsoft compliant : je te dirais pas !
    Pas mal, non, comme façon de dire : "je ne me suis jamais posé la question...
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  5. #5
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 931
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 931
    Par défaut
    Citation Envoyé par javaweb Voir le message
    j'ai été détourner par (4624) d'ailleur il veut dire quoi ce nombre ??
    C'est la ligne à laquelle est appelée l'eval() dans le fichier.

  6. #6
    Expert confirmé

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Par défaut
    l'erreur est normale t'en occupe pas

Discussions similaires

  1. [MySQL] Problème d'apostrophes dans insertion sql
    Par 12_darte_12 dans le forum PHP & Base de données
    Réponses: 7
    Dernier message: 30/05/2006, 17h20
  2. Réponses: 17
    Dernier message: 03/05/2006, 15h01
  3. [MySQL] Problème d'apostrophe avec PHP
    Par gcooo dans le forum PHP & Base de données
    Réponses: 4
    Dernier message: 28/04/2006, 15h08
  4. Problème d'apostrophe
    Par Viau dans le forum Langage
    Réponses: 2
    Dernier message: 24/02/2006, 15h06
  5. problème avec apostrophe
    Par nadds dans le forum Langage
    Réponses: 2
    Dernier message: 31/10/2005, 12h13

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