CyberPanel Community

ClosedPHP code not being executed (commented out)

MW
Marcelo Wan #1

https://website.com.br/teste.php

<? echo('wewe'); ?>

Result
<–?
echo(‘wewe’);
?–>

The result of this small script is shown the code commented and not compiled.

could anyone help?

Thanks

4 replies
sh
shoaibkk #3

try <?php echo('wewe'); php?>

MW
Marcelo Wan #4

It worked.

What do I need to do to work in the format I mentioned. Because I use wordpress and there is no way to change the tags of all files.

Thank you very much for your attention and help.

MW
Marcelo Wan #5

resolved.

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It is
; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating XML
; documents, however this remains supported for backward compatibility reasons.
; Note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; Default Value: On
; Development Value: Off
; Production Value: Off
; PHP: Description of core php.ini directives - Manual
short_open_tag = On

Sign in to reply