duannian3494 2015-02-18 18:37
浏览 31
已采纳

xampp无法识别路径

I just installed Xampp portable on a flash drive as my test environment and all services works fine. I copied my website folder from my webserver to the htdocs folder of the xampp and now xampp doesn't recognize the paths to the include_once's in the webpages and it says: Fatal error: Call to undefined function checkmobile() in F:\xampp\htdocs\mySite\includes\html_head.php on line 15

ie, there is a include_once checkmobile.php above the line 15 but the xampp doesn't recognize the path! BTW, this works from my webserver...

I am trying to keep the paths the same so when I transfer the website files back to the production server, I don't have to change all the paths again...

Any solution to this? Am I doing something wrong or have to modify some config files in xampp?

  • 写回答

1条回答 默认 最新

  • doutangu4671 2015-02-18 18:40
    关注

    It shouldn't be an issue as long as you aren't hard coding the path. What is your directory structure (just an outline is fine) and can you give us a snipped of the code with the include request in it?

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

报告相同问题?

悬赏问题

  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示