为什么我可以在线查看我的php源代码? [英] Why I can view my php source code online?

查看:138
本文介绍了为什么我可以在线查看我的php源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我购买了一个非常著名的基于php的第三方论坛软件.上传到我的服务器上,运行了几个星期.今天早上,当我访问我的网站时,它显示了所有PHP代码,包括所有注释等,如使用记事本打开它所看到的内容.这非常可怕,我在PHP文件中的数据库配置也可见,发生了什么?我别无选择,只能立即关闭我的网站.

I purchased a very well-known 3rd-party php-based forum software. Uploaded to my server, run it for few weeks. This morning, when I visit my site, it display all the PHP code, including all the comments etc, like what you will see if you open it with notepad. It was very scary, my database config which is in PHP file also visible, what happened? I have no choice but to take my website down now.

我该怎么办?如何查看PHP代码?我以为PHP代码非常安全?

What should I do? How can view PHP code? I thought PHP code is very safe?

有人入侵了我的网站吗?

Has somebody hacked my website?

推荐答案

这是服务器上的配置问题(例如出于某种原因未加载mod_php).最好立即与您的托管服务提供商联系,并让他们知道他们有严重的问题!

That's a configuration problem at the server (like mod_php not being loaded for some reason). Best contact your hosting provider immediately and let them know they have a serious problem!

除非您上传了自己的.htaccess文件,该文件也可能是有问题的Apache配置设置的来源?

Unless you have uploaded your own .htaccess file, which could also be the source of problematic Apache configuration settings?

这篇关于为什么我可以在线查看我的php源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆