【发布时间】:2013-11-10 18:40:31
【问题描述】:
我正在为 facebook 开发一个应用程序选项卡。理论上我想在粉丝和非粉丝之间创建一个重定向(经典的 fangate)......但我对数据库没有任何问题!
----- First example, work only with HTTPS and not HTTP :/
$fan = 'https://website.com/fan.html';
$nofan = 'https://website.com/nofan.html';
----- Second example i get it form database and doesn't work :@
$fan = $app_data[5]; //if I print this > https://website.com/fan.html
$nofan = $app_data[6]; //if I print this > https://website.com/nofan.html
然后我把它放进去:
if (1<2) {
echo header( "Location:".$fan); exit;}
else {
echo header( "Location:".$nofan); exit;}
感谢您的关注。我希望我解释得很好,期待建议..
已解决:如您所见 > http://jsfiddle.net/x2F8s/1/ 基于 php 标头位置的重定向在 iframe 内不起作用 O.o STRANGE :O
【问题讨论】:
-
...有什么想法吗?有问题吗?
-
您示例中的网站只是受 dont-show-in-iframe 保护。看看这个讨论:productforums.google.com/forum/#!topic/sites/2haFgrq50Po
-
我现在明白了。 jsfiddle.net/x2F8s/1 谢谢回复 :)
标签: php mysql facebook api redirect