[Whats make this error] PHP Notice: Use of undefined constant

2 replies
I just moved to new host
In this new host i always got error_log, even with this simple php file :
PHP Code:
<?php define(Y,120); ?>
this is the error_log content:
[09-Apr-2015 18:42:09 UTC] PHP Notice: Use of undefined constant Y - assumed 'Y' in /home/username/public_html/test.php on line 1

i can add single quote wrapping the Y like this to fix it
PHP Code:
<?php define('Y',120); ?>
but there are a lot of code like that, it is better if i dont need to change the files,
but just change the hosting required, what is it actually? is it because using litespeed?

in old hosting there is cgi-fcgi information


in new hosting is using litespeed
#constant #error #make #notice #php #undefined

Trending Topics