Afficher un message
Vieux 19/10/2007, 02h16   #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
 
Page generated in 0,08922 seconds with 9 queries