Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用JURI::current()时出错;在facebook上,就像在joomla一样?_Php_Joomla - Fatal编程技术网

Php 使用JURI::current()时出错;在facebook上,就像在joomla一样?

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

我举一个例子: 当我在这个页面中输入链接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: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