1、想找几种cms程序,支持API JSON接口的
?
2、织梦更新主页的时候预览出现: The requested URL /index.php was not found on this server 怎么回事啊
路径不对或者是文件不存在
3、pigcms在哪个文件修改api
igcms是基于PHP + Mysql开发,对硬件要求不高。内存有1G,硬盘除系统外还有几个G的空间就可以安装了。带宽2M就可以了。 只是要看你的应用人群了,如果你考虑到有多少人访问的话,那肯定要加大带宽,
4、测试Apache和PHP时显示The requested URL /phpinfo.php was not found on this server,路径没有错的
其实是你没有把你的PHP文件放在配置目录中-*-。。。。。
打开 apache中的httpd.conf,找到242和243行,大概就在这个位置,如下242行DocumentRoot "此处用你想要放置PHP文件的地址,你设置是哪里,以后PHP文件就放在哪里"
243行<Directory 此处用你想要放置PHP文件的地址,你设置是哪里,以后PHP文件就放在哪里>
正确设置后 在浏览器输入localhost/你建立的PHP文件名
这样就可以打开的PHP文件了
5、在帝国cms的怎样调用百度地图api
1.先在系统模版新建字段 dian 地段 后面该打的全部打勾
2.到管理模板变量 增加模板变量 变量名:[!--temp.ditu--] 变量标识:百度地图标注
3.变量值加入以下代码
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=uft-8">
<title>采集坐标 </title>
<!--[if IE 6]>
<script type="text/javascript" src="http://dev.baidu.com/wiki/static/map/tuan/js/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix("#float_search_bar");</script>
<![endif]-->
<style>
#preview{
border: 1px solid #bfd2e1;
width: 250px;
height: 250px;
font-family: Arial, Helvetica, sans-serif,"宋体";
}
#map_container{
height: 250px;
}
#float_search_bar{
z-index: 2012;
position: absolute;
width: 180px;
height: 31px;
background: url("http://dev.baidu.com/wiki/static/map/tuan/images/search_bar.png") repeat-x;
background-position: 0 -21px;
padding: 3px 0 0 10px;
}
#float_search_bar label, #float_search_bar span{
color: #0787cb;
font-size: 14px;
}
#float_search_bar input{
width: 180px;
height: 16px;
margin-top: 1px;
}
#float_search_bar input:focus{
outline: none;
}
#float_search_bar button{
border: 0;
color: white;
width: 77px;
height: 20px;
background: url("http://dev.baidu.com/wiki/static/map/tuan/images/search_bar.png") no-repeat;
background-position: 0 0;
margin-right: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div id="preview">
<div id="float_search_bar">
<label>区域:</label>
<input type="text" id="keyword" />
<button id="search_button">查找</button>
<span>点击地图或标注获取坐标</span>
</div>
<div id="map_container"></div>
</div>
<div id="result" style="margin-top: 4px;"></div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2"></script>
<script type="text/javascript">
function getUrlParas(){
var hash = location.hash,
para = {},
tParas = hash.substr(1).split("&");
for(var p in tParas){
if(tParas.hasOwnProperty(p)){
var obj = tParas[p].split("=");
para[obj[0]] = obj[1];
}
}
return para;
}
var para = getUrlParas(),
center = para.address?decodeURIComponent(para.address) : "[!--dian--]",
city = para.city?decodeURIComponent(para.city) : "[!--diqu--]";
document.getElementById("keyword").value = center;
var marker_trick = false;
var map = new BMap.Map("map_container");
map.enableScrollWheelZoom();
var marker = new BMap.Marker(new BMap.Point(116.404, 39.915), {
enableMassClear: false,
raiseOnDrag: true
});
marker.enableDragging();
map.addOverlay(marker);
map.addEventListener("click", function(e){
if(!(e.overlay)){
map.clearOverlays();
marker.show();
marker.setPosition(e.point);
setResult(e.point.lng, e.point.lat);
}
});
marker.addEventListener("dragend", function(e){
setResult(e.point.lng, e.point.lat);
});
var local = new BMap.LocalSearch(map, {
renderOptions:{map: map},
pageCapacity: 1
});
local.setSearchCompleteCallback(function(results){
if(local.getStatus() !== BMAP_STATUS_SUCCESS){
alert("无结果");
} else {
marker.hide();
}
});
local.setMarkersSetCallback(function(pois){
for(var i=pois.length; i--; ){
var marker = pois[i].marker;
marker.addEventListener("click", function(e){
marker_trick = true;
var pos = this.getPosition();
setResult(pos.lng, pos.lat);
});
}
});
window.onload = function(){
local.search(center);
document.getElementById("search_button").onclick = function(){
local.search(document.getElementById("keyword").value);
};
document.getElementById("keyword").onkeyup = function(e){
var me = this;
e = e || window.event;
var keycode = e.keyCode;
if(keycode === 9){
local.search(document.getElementById("keyword").value);
}
};
};
function a(){
document.getElementById("float_search_bar").style.display = "none";
}
a();
/*
* setResult : 定义得到标注经纬度后的操作
* 请修改此函数以满足您的需求
* lng: 标注的经度
* lat: 标注的纬度
*/
function setResult(lng, lat){
document.getElementById("result").innerHTML = lng + ", " + lat;
}
</script>
</body>
</html>
4.到需要加入地图的内容模版加入代码:[!--temp.ditu--]
6、如何解决failed to push some refs to git
1
在使用git 对源代码进行push到gitHub时可能会出错,信息如下
2
此时很多人会尝试下面的命令把当前分支代码上传到master分支上。
$ git push -u origin master
但依然没能解决问题
3
出现错误的主要原因是github中的README.md文件不在本地代码目录中
4
可以通过如下命令进行代码合并【注:pull=fetch+merge]
git pull --rebase origin master
5
执行上面代码后可以看到本地代码库中多了README.md文件
6
此时再执行语句 git push -u origin master即可完成代码上传到github
7、phpcms 怎么访问根目录/api里面的文件
通过phpcms访问代码目录下的文件,写一个文件路径就可以了,然后就可以访问这个文件里的文件了。
8、phpcms 怎么访问根目录下面的api
你说的api具体指什么?cms不管怎么访问都是唯一入口,从index.php进去引入base.php,然后自动加载类库,实现各级的调用