PHP code is not being executed, but the code shows in the browser source code

問題:

I'm trying to execute some PHP code on a project (using Dreamweaver) but the code isn't being run.我正在嘗試在一個項目上執行一些 PHP 代碼(使用 Dreamweaver),但代碼沒有運行。

When I check the source code, the PHP code appears as HTML tags (I can see it in the source code).當我查看源代碼時,PHP 代碼顯示爲 HTML 標記(我可以在源代碼中看到它)。 Apache is running properly (I'm working with XAMPP), the PHP pages are being opened properly but the PHP code isn't being executed. Apache 運行正常(我正在使用 XAMPP),PHP 頁面正常打開,但 PHP 代碼未執行。

Does someone have a suggestion about what is happening?有人對正在發生的事情有什麼建議嗎?

Note: The file is already named as filename.php注意:該文件已經被命名爲filename.php

Edit: The Code..:編輯:代碼..:

<?
include_once("/code/configs.php");
?>

印刷品


解決方案:

參考一: https://en.stackoom.com/question/LUKl
參考二: https://stackoom.com/question/LUKl
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章