如何在不刷新页面的情况下更改URL?
我用CodeIginer构建了一个网站,我想在我的一个页面中实现AJAX和JQuery.问题是; 当我加载内容时,URL不会更改.
假设我有URL http://www.example.com/controller/function/param
和另一个URL:http://www.example.com/controller/function/param2
单击按钮时,如何将第一个URL更改为第二个URL?
我试图从proc_openphp中获取方法的输出,但是,当我打印它时,我变空了.
$descriptorspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "files/temp/error-output.txt", "a")
);
$process = proc_open("time ./a a.out", $descriptorspec, $pipes, $cwd);
只要我知道,我可以得到输出 stream_get_contents()
echo stream_get_contents($pipes[1]); fclose($pipes[1]);
但我不能这样做......有什么建议吗?
先谢谢......