search

Home  >  Q&A  >  body text

When inserting PHP into html, the PHP code segment is displayed as invalid (white), and the DW software used is

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>无标题文档</title>

</head>

<?php

echo "aha";

?>

<body>

</body>

</html>


小满未满小满未满2718 days ago1396

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-06-24 09:24:17

    html files do not parse php files, php files can parse html

    reply
    0
  • ringa_lee

    ringa_lee2017-06-23 18:25:06

    First check whether your file name suffix is ​​.php

    reply
    0
  • Cancelreply