Jump to content

PHP tag appears


Go to solution Solved by Bruno_C,

Recommended Posts

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

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

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

  • Solution

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.