上传到服务器后,PHP文件编辑没有生效

问题描述:

I have a PHP helper class with all static methods. When I add a new method or make any changes to the file and afterwards upload to server, the server does not detect the changes. I get an error saying

Fatal error: Call to undefined method Class::functionName() does not exist

even though it does exist. I've tried restarting Apache Server and also clearing browser cache. I don't have any caching setup on server either.

我有一个带有所有静态方法的PHP助手类。 当我添加新方法或对文件进行一次更改并随后上传到服务器时,服务器不会检测到更改。 我收到错误说 p>

致命错误:调用未定义的方法Class :: functionName()不存在 p> blockquote> \ n

即使它确实存在。 我尝试重新启动Apache Server并清除浏览器缓存。 我在服务器上也没有任何缓存设置。 p> div>

if you can, connect to the server with ssh and do some investigation. for example, search for the php file with find, to see if it lies around multiple times, check last modified dates, and of course the contents. also maybe modify the main file of your webpage (for example index.php), to verify that you are looking in the right place.