我在Ubuntu 12.04上安装了PHP版本5.5.1-2,JSON没有捆绑它(据我所知).
我已经读过,我将不得不使用--enable-json或--with-json选项重新安装php.
所以我的问题是:
如何验证未安装JSON?
如果没有,我是否重新安装这样的php:apt-get install php --with-json(我包括--enable-json)?
如果我重新安装php,我的当前设置会丢失吗?
谢谢
我在这里不知所措,以前从来没有遇到过这个问题.
我无法在任何浏览器中使用focus().我正在使用jquery,甚至无法使用标准的javascript.我尝试添加超时但仍然没有.我收到警报的所有内容都是"未定义".
这是输入
<input type="text" name="SearchBox" id="SearchBox" class="SearchBox" />
Run Code Online (Sandbox Code Playgroud)
这是jquery
$(document).ready(function(){
setTimeout(function(){
$("#SearchBox").focus();
}, 0);
alert($("*:focus").attr("id"));
});
Run Code Online (Sandbox Code Playgroud)
我已经将页面剥离到上面,以防有什么东西干扰它但仍然没有成功.它必须是我想念的简单!!!!
我有这个
$xml = new SimpleXMLElement($output);
$names = $xml->param->value->array->data;
Run Code Online (Sandbox Code Playgroud)
这是输出
SimpleXMLElement Object
(
[value] => Array
(
[0] => SimpleXMLElement Object
(
[struct] => SimpleXMLElement Object
(
[member] => SimpleXMLElement Object
(
[name] => school
[value] => SimpleXMLElement Object
(
[struct] => SimpleXMLElement Object
(
[member] => Array
(
[0] => SimpleXMLElement Object
(
[name] => schoolid
[value] => SimpleXMLElement Object
(
[string] => 49961
)
)
[1] => SimpleXMLElement Object
(
[name] => schoolname
[value] => SimpleXMLElement Object
(
[string] …Run Code Online (Sandbox Code Playgroud)