Jump to content

PHP tag appears


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.