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? Quote Link to comment 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.) Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2014 Share Posted February 3, 2014 Without relevant code we cant really help. Quote Link to comment 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)? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Solution Bruno_C Posted February 4, 2014 Author Solution 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 Quote Link to comment 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.