Tuesday, June 14, 2011

Notice Use of undefined constant - assumed in on line error

Notice: Use of undefined constant  - assumed '_' in .....php on line nn

This is the error which many PHP programmer face in coding.
The most important fixes are listed below:
1- you have not declared contant, so declared it
2- use single or double quotes in constant for ex: define('MYCONST', "abc")
3- many  use short open tag "<?" so enable it or user "<?php".





No comments:

Post a Comment