Ask coding questions

← Back to all posts
<?php?> tag doesn't work
MarkelL (10)

I am just starting to learn php. But because of some weird reason, the <?php?> tag in my html page doesn't work. CAn someone explain why?
I believe the html does not read it.

Answered by timmy_i_chen (1076) [earned 5 cycles]
View Answer
timmy_i_chen (1076)

We made some updates to PHP (well, we made two new "languages"): - New and improved PHP language for command line interface shenanigans. Supports multiple files. - PHP Web servers! Just like other hosted repls, this allows you to write websites using PHP.


CaptainAnon (116)

PHP is a different language to HTML. It is run on a server, before the page is sent to the client. Browsers cannot run PHP.

Just realised how difficult it is to read the phrase "browser tries to render file"