Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 13-07-2009
Member
 
Join Date: May 2008
Posts: 38
Error: Use of undefined constant in PHP

Hello friends,
I got this error message & I dont understand why I am getting this error message without any changes been made from my side.

Error: Use of undefined constant

It says something like:
Code:
Notice: Use of undefined constant ID_my_site - assumed 'ID_my_site' in /path/.../login.php on line 70
Can you let me know what should I do?
Reply With Quote
  #2  
Old 13-07-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Error: Use of undefined constant in PHP

Notice: Use of undefined constant/variable
Due to a change of requirements between php versions, it became necessary to define and/or initialize all the constants and variables used in php

The work-round to this issue is to change the php.ini settings from

Code:
error_reporting = E_ALL
to

Code:
error_reporting = E_ALL & ~E_NOTICE
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 13-07-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Error: Use of undefined constant in PHP

Here It is the Answer to your Question
Predefined Variables
PHP provides a large number of predefined variables to any script which it runs. Many of these variables, however, cannot be fully documented as they are dependent upon which server is running, the version and setup of the server, and other factors.
From version 4.1.0 onward, PHP provides an additional set of predefined arrays containing variables from the web server (if applicable), the environment, and user input. These new arrays are rather special in that they are automatically global--i.e., automatically available in every scope. For this reason, they are often known as "superglobals". (There is no mechanism in PHP for user-defined superglobals.)
Superglobals cannot be used as variable variables inside functions or class methods.
http://www.php.net/manual/en/languag...predefined.php

I hope this helps you.
Reply With Quote
  #4  
Old 13-07-2009
Member
 
Join Date: May 2008
Posts: 30
Re: Error: Use of undefined constant in PHP

I am working with Joomla & PHP.
I just got updated to the latest version.
Now I see an error message in my log message:

Code:
PHP Notice:  Use of undefined constant _ISO - assumed '_ISO' in /home/mysite/public_html/Portal/includes/joomla.php on line 2651
What do you suggest me?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error: Use of undefined constant in PHP"
Thread Thread Starter Forum Replies Last Post
'DOMParser is undefined' IE7 error message Protectors Technology & Internet 5 28-01-2012 08:20 AM
Need for Speed World Undefined Error help Sahira Video Games 6 20-07-2010 11:08 AM
Apache and PHP error : undefined symbol: php_ini_opened_path on OpenSuse SusE-SoNi Operating Systems 3 13-08-2009 06:42 PM
Fatal Error : Call to undefined function simplexml_load_file() Ananias Software Development 3 02-06-2009 05:43 PM
Undefined variable error in Php Capers Software Development 3 31-03-2009 05:14 PM


All times are GMT +5.5. The time now is 11:41 AM.