U
U
Umar Bezugov2021-11-05 13:03:32
PHP
Umar Bezugov, 2021-11-05 13:03:32

When you run php code in the browser, plain text is displayed, but I did everything as in the fructcode course, what should I do with this problem?

I wrote the usual code in notepad++ After
saving, I went to the local apache php server
And I see this
<?php
echo "Hello"
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inFureal, 2021-11-05
@inFureal

Because the browser does not know how to PHP.
PHP is an interpreter that should read your code and execute it.
In PS Console php hello.php
Forgot semicolon after Hello

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question