简体   繁体   English

PHP post.php之谜

[英]PHP post.php mystery

I have a weird unexplainable phenomenon going on. 我有一个奇怪的无法解释的现象。

I downloaded some source code from a website, a basic PHP script. 我从网站上下载了一些源代码,这是一个基本的PHP脚本。 It came with an SQL to reference numbers as part of the script. 它带有SQL来引用数字作为脚本的一部分。

I uploaded the file called post.php and SQL file to my server and ran it - but - instead of executing the code in the PHP file, it loads the content of the webpage of the author of the source code. 我将名为post.php的文件和SQL文件上载到我的服务器并运行-但是-而不是执行PHP文件中的代码,而是加载了源代码作者的网页内容。 and stays on my server URL. 并停留在我的服务器网址上。

The code in the file has nothing to do with the author's site, or graphics or links or redirects or anything. 文件中的代码与作者的网站,图形,链接或重定向或任何内容均无关。

EVEN IF I delete the entire contents of the post.php file, run the empty file and it STILL LOADS CONTENT from the author's website, where I downloaded it from. 即使删除了post.php文件的全部内容,运行空文件,它仍然从作者的网站上下载内容,我从那里下载了该文件。

Refreshed browser, restarted, reloaded, you name it. 刷新的浏览器,重新启动,重新加载,您命名。 How is this physically possible? 这在物理上怎么可能?

-----UPDATE -----更新

In addition when I try renaming PHP files on my server, they become permanently broken "oops broken link" error. 另外,当我尝试重命名服务器上的PHP文件时,它们会永久损坏,“糟糕的链接”错误。

It would be very helpful if you could post some more specific details about what the script was, etc. But, here is my guess. 如果您可以发布有关脚本内容的更多特定详细信息,这将非常有帮助。但是,这是我的猜测。 Firstly, make sure that your web server is not doing any caching. 首先,请确保您的Web服务器未进行任何缓存。 If the problem persists, try getting rid of the post.php file itself. 如果问题仍然存在,请尝试摆脱post.php文件本身。 Then, I would check to see if the PHP script has created any HTML/PHP files on its own. 然后,我将检查PHP脚本是否自行创建了任何HTML / PHP文件。 If all else fails, try going into the code that you downloaded and see what its doing. 如果其他所有方法均失败,请尝试进入下载的代码,然后查看其作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM