joon1
October 26, 2019, 8:53am
1
<?php
1111
I have a page which has the code above in my old server (PHP5, Window).
and
I have a page which has the code above in my new server (PHP7, Xubuntu).
In the old server, it says " Parse error : syntax error, unexpected $end".
In the new server, it says “nothing”.
How can I make my new server say something about the error when the code has some problems?
Start by changing all short opening php tags <? to a full opening php tags <?php
Then, if you don’t get the same php parse error, you need to edit the php.ini on your system and make sure that error_reporting is set to E_ALL and display_errors is set to ON.
joon1
October 26, 2019, 9:45am
3
I fixed it.
There are 5 php.ini files like the following.
Which one should I set for it?
I find several error_reportings in /etc/php/7.2/apache2/php.ini.
Create a .php file with a phpinfo(); statement in it to find the php.ini that php is using. See the “Loaded Configuration File” value in the output.
1 Like
system
Closed
January 26, 2020, 8:37am
6
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.