dongzhuo1498 2013-02-01 04:56
浏览 62
已采纳

如何重定向到php soap服务器中的页面

I have called a nusoap server function to do some stuff and redirect.

This is how I am calling my nusoap function

$client=newnusoap_client($endpoint);
$wrapperdiv = $client->call('testFunction', array('details' => $formname ));

In test function I used header tag to redirect

header("location:www.google.com");

but I am getting an error like

The requested URL serverpath/http//www.google.com was not found on this server.

  • 写回答

1条回答 默认 最新

  • dscuu86620 2013-02-01 04:58
    关注

    you can use with http://, its always calling that real server, otherwise it will calling relative paths in your server.

    header("location:http://www.google.com");
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部