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 ecplise在连接数据库时显示加载驱动成功但是数据库连接失败
  • ¥15 visionmaster启动失败,提示为“机器不满足授权而被禁用”
  • ¥50 用logisim设计16位单时钟周期cpu
  • ¥15 IDEA中圈复杂度如何具体设置
  • ¥50 labview采集不了数据
  • ¥15 Multisim红外倒车雷达仿真中距离问题
  • ¥15 请上面代码做什么处理或什么混淆
  • ¥15 英雄联盟自定义房间置顶
  • ¥15 W5500网线插上无反应
  • ¥15 如何用字典的Key,显示在WPF的xaml中