What causes this error, PHP Notice: Use of undefined constant

basketmen

Well-Known Member
Sep 9, 2010
128
1
66
I just moved to new host
In this new host i always got error_log, even with this simple php file :
PHP:
<?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:
<?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 cgi-fcgi.jpg

in new hosting is using litespeed
litespeed.jpg