在网站上显示文件扩展名是否安全?

It is safe to show the extension of file on website?

我想知道在网站 URL 中显示文件扩展名是否安全。

例如:

如果您愿意,这样做是安全的,前提是 PHP 已安装并正确执行您的 PHP 文件。