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,然後自動載入類庫,實現各級的調用