Can I include a PHP file in an SHTML file and store the result in a SHTML variable?

前端 未结 4 610
暖寄归人
暖寄归人 2021-01-26 04:12

I want to include a PHP file in an SHTML file and store the result in a SHTML variable and include different things depending on the result.

Example:
Assume the PHP

4条回答
  •  无人共我
    2021-01-26 04:27

    Doesn't sound possible. SHTML uses different methods of parsing the code so I don't think the PHP will run on the page to return a value to the SHTML. Why are you doing this though, why not use PHP outright?

提交回复
热议问题