1.打開后臺(tái)入口文件admin.php header(location:index.php?m=admin); 跳轉(zhuǎn)到index.php并且m=admin 2.打開index.php define( PHPCMS_PATH , dirname(__FILE_ _ ). DIRECTORY_SEPARATOR ); include PHPCMS_PATH . /phpcms/base.php ; pc_base: :c
phpcms的管理欄目中,模板設(shè)置-模板應(yīng)用到子欄目,當(dāng)我們選擇是的時(shí)候,發(fā)現(xiàn)新應(yīng)用的模板還是無(wú)法應(yīng)用到子目錄中,必須一個(gè)一個(gè)手動(dòng)更改子目錄模板才會(huì)有效。 原因是在于phpcmsv9
PHP環(huán)境必須開啟支持GD2 1、api 接口文件目錄增加如下文件: 官網(wǎng)下載地址:http://phpqrcode.sourceforge.net/ phpqrcode.php 2、在phpcms框架主目錄functions中我們?cè)黾右粋€(gè)自定義函數(shù): \phpcms\libs\fun
JQuery獲取瀏覽器的窗口高度或頁(yè)面高度的常用方法如下: alert($(window).height()); //瀏覽器當(dāng)前窗口可視區(qū)域高度 alert($(document).height()); //瀏覽器當(dāng)前窗口文檔的高度 alert($(document.body).heigh
MySQL語(yǔ)句如何實(shí)現(xiàn)從數(shù)據(jù)庫(kù)表中查詢隨機(jī)數(shù)據(jù)的記錄 1. Oracle,隨機(jī)查詢20條 select * from ( select * from 表名 order by dbms_random.value ) where rownum = 20; 2.MS SQL Server,隨機(jī)查詢20條 select top 20 * from 表名
一、get 標(biāo)簽概述 通俗來(lái)講,get 標(biāo)簽是Phpcms定義的能直接調(diào)用數(shù)據(jù)庫(kù)里面內(nèi)容的簡(jiǎn)單化、友好化代碼,她可調(diào)用本系統(tǒng)和外部數(shù)據(jù),只有你對(duì)SQL有一定的了解,她就是你的絕世好劍!也
我們可以使用alert(JSON.stringify(strArr)); 打印JSON中的數(shù)據(jù)內(nèi)容。 第一種方式:使用js函數(shù)eval(); testJson=eval(testJson);是錯(cuò)誤的轉(zhuǎn)換方式。 正確的轉(zhuǎn)換方式需要加(): testJson = eval(( + testJson + ));
我們?cè)趯懸恍┬Ч麜r(shí),經(jīng)常要用到 jquery 獲取當(dāng)前時(shí)間,但是jquery 目前并沒有提供直接獲取當(dāng)前時(shí)間的 api 或者函數(shù),所以我們還是得用原生的 javascript 時(shí)間對(duì)象 Date 來(lái)獲取當(dāng)前時(shí)間,我
我們?cè)谑褂肞HPCMS下載內(nèi)容頁(yè)或視頻內(nèi)容頁(yè)、圖片內(nèi)容頁(yè)的時(shí)候需要增加用戶收藏的功能,直接在模板中增加以下代碼即可。 模板中增加代碼: span id=favorite a href=javascript:; onclick=add_favo
jQuery 從 1.9 版開始,移除了 $.browser 和 $.browser.version , 取而代之的是 $.support 。 在更新的 2.0 版本中,將不再支持 IE 6/7/8。 以后,如果用戶需要支持 IE 6/7/8,只能使用 jQuery 1.9。 解決方
Magic CSS3 Animations 動(dòng)畫是一款獨(dú)特的CSS3動(dòng)畫特效包,你可以自由地使用在您...
torann/geoip通過(guò)該擴(kuò)展包,我們可以根據(jù)用戶的IP獲得地理位置信息。 項(xiàng)目地址...
Laravel清理緩存的命令1、清除應(yīng)用程序緩存運(yùn)行以下命令以清除Laravel應(yīng)用程序...
在本地開發(fā)的過(guò)程中,我們使用TortoiseSVN提交最新的修改數(shù)據(jù)至SVN服務(wù)器,但SV...
總體內(nèi)容分為傳值類型和方法,大概總體感覺如下。 傳值類型:一個(gè)值,多個(gè)值,數(shù)...
網(wǎng)站常會(huì)用到一些下拉菜單,幻燈片,飄浮廣告等。 但經(jīng)常會(huì)發(fā)現(xiàn)?;脽羝瑫?huì)擋住...
在PHP中,主要有以下3種錯(cuò)誤類型。 1. 注意(Notices) 這些都是比較小而且不嚴(yán)...
Ajax請(qǐng)求搜索詞點(diǎn)擊統(tǒng)計(jì)實(shí)現(xiàn)的代碼片段,以下代碼為項(xiàng)目開發(fā)中的片段,實(shí)現(xiàn)方法...