S
S
Sasha Misnik2015-12-13 22:33:54
PHP
Sasha Misnik, 2015-12-13 22:33:54

How to set up php?

PHP scripts don't work when writing

<?
echo "......."
?>

and this is how it works
<?php
echo "......."
?>

Please tell me how to set up

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
sunrails, 2015-12-13
@Razorvin

php.net/manual/en/ini.core.php#ini.short-open-tag

D
D', 2015-12-13
@Denormalization

Never again use the short syntax <? ?>
And then, one day you can turn gray inadvertently.

M
Miku Hatsune, 2015-12-13
@Hatsune-Miku

In php.ini, change the value of the short_open_tag directive to On
But it is not recommended to do this, it is better to use <?php instead of <?

E
Eugene, 2015-12-13
@Fector

In php.ini, enable the short_open_tag directive.

A
Alexander Shapoval, 2015-12-14
@AlexanderShapoval

<?
echo "......."
?>

It's best never to do that. Not that one day you can get a ruler on your hands

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question