Php 使用JURI::current()时出错;在facebook上,就像在joomla一样?
我举一个例子: 当我在这个页面中输入链接url(例如:)和facebook时Php 使用JURI::current()时出错;在facebook上,就像在joomla一样?,php,joomla,Php,Joomla,我举一个例子: 当我在这个页面中输入链接url(例如:)和facebook时 <div id="fb-root"></div> <fb:like send="true" layout="button_count" width="50" show_faces="false" href="<?php echo JURI::current(); ?>" action="like" colorscheme="light" font=""></fb:l
<div id="fb-root"></div>
<fb:like send="true" layout="button_count" width="50" show_faces="false" href="<?php echo JURI::current(); ?>" action="like" colorscheme="light" font=""></fb:like>
如何修复,结果是http://test.html
尝试使用$\u服务器[“请求URI”]代码>这可能会给你想要的
干杯。@Justion Wood:当访问facebook时出现问题,链接url不正确是test.html,但它是test.html?fb_操作。。。。
http://test.html?fb_action_ids=214927585304828&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582