Bruno_C Posted February 3, 2014 Share Posted February 3, 2014 Hi, Im working on a web application and i want your help to solve a problem. Some pages that are showed by this application starts with a php tag (?>)on the top of the them, and i really dont know what is suppose to do to remove this "error". I search on the respective files and folders and i cant get the solution. Someone already had a similar problem and can help me solving this? Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/ Share on other sites More sharing options...
mac_gyver Posted February 3, 2014 Share Posted February 3, 2014 it's likely that the php code is using the short opening <? tag and it isn't enabled. what sort of opening php tag is there in the file? a full one <?php or a short one <? you can also look at the 'view source' of the page in your browser to confirm if this is the problem (you will see the raw php code.) Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467580 Share on other sites More sharing options...
Bruno_C Posted February 3, 2014 Author Share Posted February 3, 2014 it's likely that the php code is using the short opening <? tag and it isn't enabled. what sort of opening php tag is there in the file? a full one <?php or a short one <? you can also look at the 'view source' of the page in your browser to confirm if this is the problem (you will see the raw php code.) Not in the file. It appears only on browser. Appears like that: ?> Already did it before (view source code). ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN""."\n".""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> The question is i dont know how it appears and where can i delete it. Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467622 Share on other sites More sharing options...
trq Posted February 3, 2014 Share Posted February 3, 2014 Without relevant code we cant really help. Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467623 Share on other sites More sharing options...
Bruno_C Posted February 3, 2014 Author Share Posted February 3, 2014 Wich piece of code you consider relevant? Because the tag i speak about appears always before the html open tag (some script maybe)? Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467624 Share on other sites More sharing options...
Bruno_C Posted February 3, 2014 Author Share Posted February 3, 2014 I cant edit my own posts? Really? Btw, i am using Achievo. Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467633 Share on other sites More sharing options...
jcbones Posted February 4, 2014 Share Posted February 4, 2014 The relevant code is the file that you are loading in your browser. Without seeing what is causing the problem, we can only guess, and be wrong. Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467649 Share on other sites More sharing options...
Bruno_C Posted February 4, 2014 Author Share Posted February 4, 2014 SOLVED It was a duplicated php end tag on a language file. I tried to change the interface language to send some code to you and when i changed it, the tag is gone, so i easily deduced where the problem was. I appreciate you help. Thank you all.. Regards Link to comment https://forums.phpfreaks.com/topic/285911-php-tag-appears/#findComment-1467678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.