PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > redefine contante value
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
redefine contante value

Réponse
 
LinkBack Outils de la discussion
Vieux 18/10/2007, 20h11   #1
Martin Marques
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut redefine contante value

I'm redefining constant values and get notices on my log files:

[18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already
defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50

How can I re-define them without getting notice messages?

--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. MartÃn Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------
  Réponse avec citation
Vieux 18/10/2007, 20h35   #2
ZeldorBlat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: redefine contante value

On Oct 18, 3:11 pm, mar...@bugs.unl.edu.ar (Martin Marques) wrote:
> I'm redefining constant values and get notices on my log files:
>
> [18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already
> defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50
>
> How can I re-define them without getting notice messages?
>


You can't. The whole point of a constant is that it doesn't change --
it's value is "constant."


  Réponse avec citation
Vieux 18/10/2007, 20h36   #3
ZeldorBlat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: redefine contante value

On Oct 18, 3:11 pm, mar...@bugs.unl.edu.ar (Martin Marques) wrote:
> I'm redefining constant values and get notices on my log files:
>
> [18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already
> defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50
>
> How can I re-define them without getting notice messages?
>


You can't. The whole point of a constant is that it doesn't change --
it's value is "constant."

  Réponse avec citation
Vieux 19/10/2007, 01h16   #4
Larry Garfield
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] redefine contante value

On Thursday 18 October 2007, Martin Marques wrote:
> I'm redefining constant values and get notices on my log files:
>
> [18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already
> defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50
>
> How can I re-define them without getting notice messages?


You don't. They're constants. That means you set them once and can never
change them again.

It looks like you're trying to set a configuration value, in which case what
you should be doing is going to tcpdf_config.php and changing line 50 to
define FPDF_FONTPATH to be whatever it is you want it to be. That's why it's
in a config file. :-)

--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012

"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11637 seconds with 12 queries