How to embed php in html file with atom

Asked 1 years ago, Updated 1 years ago, 62 views

I want to embed php in html with atom, but I can't.

If you view the following files,

aiueo
"; ?>

It appears as shown in .

<!DOCTYPE html>
<html>
<head>
  <title> Ayeo</title>
</head>
<body>
<?php
  echo "<p>aiueo</p>";
?>
</body>
</html>

Please let me know if you know the cause.

php html atom-editor

2022-09-29 21:33

1 Answers

Did you create an extension in .html?
The following questions are similar, but you must use .htaccess to process files with .html extension as PHP scripts.

When creating a website, either embed html in php or php in html


2022-09-29 21:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.