doupao5296 2015-08-03 06:21
浏览 89
已采纳

上传到服务器后,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.

  • 写回答

1条回答 默认 最新

  • douyi1779 2015-08-03 07:13
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog