doudou130216 2013-04-30 03:48 采纳率: 0%
浏览 39
已采纳

在firefox和Chrome中运行php项目时出错

I have created a php project. I am using XAMPP. When I run login page, after successful login it should redirect me to a webpage called

http://localhost/xyx.php

However in firefox it redirects me to

 http://localhost/localhost/xyx.php

However the same thing works fine in safari.On successful validation, I redirect user using following line of code:

header('Location: http://localhost/xyx.php');

Can anyone tell me what might be the issue?

  • 写回答

1条回答 默认 最新

  • doujiu3882 2013-04-30 04:03
    关注

    This will be enough to redirect into xyz.php..

    header('Location: xyx.php');
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Acrn IVSHMEM doorbell问题
  • ¥15 yolov5中的val测试集训练时数量变小问题
  • ¥15 MPLS/VPN实验中MPLS的配置问题
  • ¥15 materialstudio氢键计算问题
  • ¥15 echarts图表制作
  • ¥15 halcon根据玻璃面板纹路取区域
  • ¥15 HFSS设计小型化180度耦合器
  • ¥15 使用CInternetSession,CHttpFile读取网页文件时有些电脑上会卡住怎么办?
  • ¥15 水下机器人的半物理仿真研究
  • ¥15 微服务假死,一段时间后自动恢复,如何排查处理