gordone Posted November 8, 2015 Share Posted November 8, 2015 (edited) Hello, A friend of me have made a homepage we have used for some years for private interest.I have now upgraded the server from freebsd to ubuntu and imported the mysql dump and php/html code, but the site is a mess.... I`m feeling its something basic who are wrong? EDIT: URL OMMITED BY MODERATOR Please take a look. and your input / respons are much appreciated, because I don`t understand what is wrong here.... Edited November 8, 2015 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/ Share on other sites More sharing options...
benanamen Posted November 8, 2015 Share Posted November 8, 2015 You are missing two closing PHP tags Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526016 Share on other sites More sharing options...
gordone Posted November 8, 2015 Author Share Posted November 8, 2015 You are missing two closing PHP tags Thank you for advise, but can you point where? Everywhere <?php it also close with ?> ? Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526018 Share on other sites More sharing options...
Ch0cu3r Posted November 8, 2015 Share Posted November 8, 2015 (edited) The code uses short PHP tags (<? ?>), these will only work if you have enabled a setting called short_open_tags in the php.ini If you do not have access to the php.ini then I suggest you to convert the <? tags to <?php tags. NOTE I have removed your sites url from your post as as I was able to read the contents of your constants.php file containing your db credentials. Edited November 8, 2015 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526019 Share on other sites More sharing options...
gordone Posted November 8, 2015 Author Share Posted November 8, 2015 The code uses short PHP tags (<? ?>), these will only work if you have enabled a setting called short_open_tags in the php.ini If you do not have access to the php.ini then I suggest you to convert the <? tags to <?php tags. NOTE I have removed your sites url from your post as as I was able to read the contents of your constants.php file containing your db credentials. Thank you, I have now updated php.ini with short_open_tag = On and restarted apache2, but the page looks identical for me...? http://tippelaget.dynamitt.net Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526021 Share on other sites More sharing options...
Ch0cu3r Posted November 8, 2015 Share Posted November 8, 2015 Are you sure you are editing the correct php.ini? To know what config file PHP is using call the phpinfo() function and look for the Loaded Configuration File line it will state which config file php is reading. Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526023 Share on other sites More sharing options...
benanamen Posted November 8, 2015 Share Posted November 8, 2015 (edited) If you did actually update the ini file you ALSO need to restart apache for it to take effect. You are still missing the closing tags. Edited November 8, 2015 by benanamen Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526024 Share on other sites More sharing options...
gordone Posted November 8, 2015 Author Share Posted November 8, 2015 Hello,Thank you all for your quick respons, the issue was you said I was wrong php.ini file I was updating. Things are working now, thank you all. Quote Link to comment https://forums.phpfreaks.com/topic/299389-what-is-wrong/#findComment-1526046 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.