Hongmu Notes
Apple cms message board tags

Apple cms message board tags Program Notes Apple cms

Message board tag Scope of application: Can be used anywhere on the entire site Tag function: Used for users to submit messages and retrieve message records 1. Message submission form <form action="{pboot:msgaction}" method="post"> Contact person: <input type=&quot…
👁 455
Optimized alternative function for file_get_contents

Optimized alternative function for file_get_contents Summary of pitfalls

curl() is several times faster than file_get_contents(). function curl_file_get_contents($durl) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $durl); curl_setopt($ch, CURL…
👁 167
Empire cms adds custom lists and uses your own php code

Empire cms adds custom lists and uses your own php code Program Notes Empire cms

Secondary development for lists; <?php require('../../class/connect.php'); require('../../class/db_sql.php'); require('../../class/functions.php'); require('../../class/t_fu...');
👁 222
Empire cms, insert a picture in the first paragraph of the article

Empire cms, insert a picture in the first paragraph of the article Program Notes Empire cms

&lt;?php $img = '&lt;p&gt;&lt;img src=&quot;/skin/images/'.mt_rand(1,1).'.png&quot; alt=&quot;'.$navinfor['title'].'&quot;&gt;&lt;/p&gt;'; $pos = strp…
👁 203
Empire cms dynamic mode list page pseudo-static, new method

Empire cms dynamic mode list page pseudo-static, new method Program Notes Empire cms

Empire CMS can sometimes encounter issues where static lists fail to update automatically, or where newly updated articles do not appear immediately on the page. To address this seemingly minor issue, we have created a tutorial. The modified approach displays links to static web pages, but these pages actually operate in dynamic mode – i.e., they use pseudo-static URLs. The pseudo-static URL format is: http(s)://domain/section_filename/index_2.html – something like that! Pseudo...
👁 797
Fix the id auto-increment sequence of data tables

Fix the id auto-increment sequence of data tables Language Notes mySql

1. Drop the existing primary key: `ALTER TABLE `table_name` DROP `id`;` 2. Add a new primary key field: `ALTER TABLE `table_name` ADD `id`INT(11) NOT NULL FIRST;` 3. Set the new primary key: `ALTER TABLE `table_name` MODIFY...`
👁 178
Empire cms PHP caches web page code to speed up access

Empire cms PHP caches web page code to speed up access Program Notes Empire cms

Optimized cached files – suitable for any PHP website. It provides a fundamental solution to your website's loading speed issues! <?php /****************** require(ECMS_PATH.' cache/content.php'); *******************************************/ /...
👁 401
Create a folder in php and set the access permission to 7777

Create a folder in php and set the access permission to 7777 Language Notes PHP

define('CACHE_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'cacheFile'); if(!file_exists(CACHE_ROOT)){ mkdir(CACHE_ROOT,0777); chmod(CACHE_ROOT,07…
👁 145
Back to top side button

Back to top side button Summary of pitfalls

1.html &lt;dl class=&quot;toolbar&quot;&gt; &lt;dd class=&quot;qq&quot;&gt;&lt;a href=&quot;tencent://message/?uin=123456&amp;Menu=yes&quot;&gt;&lt;i&…
👁 220
Empire's high-efficiency random calling function expansion

Empire's high-efficiency random calling function expansion Program Notes Empire cms

Key Concept Summary: 1. PHP function `ZQrand($classid, $num) {global $dbtbpre, $empire; /* Check whether the JSON file exists */ $file_arrays = glob(ECMS_PATH. "/d/json/*.json"); $file...`
👁 189
1 292 293 294 295 296 315

🔥 Popular articles

Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3752
Imperial cms imitation website tutorial corresponding notes

Imperial cms imitation website tutorial corresponding notes Program Notes Empire cms

Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq1810216796 QQ exchange group: 9589723231 Imperial cms website installation. Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq: 1810216796 qq exchange group: 958972323 Build an imperial program. If you have a server and have built an imperial website on the server, then...
👁 3413
Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014

Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014 Practical Collection empire template

This set of templates has a complete member center on mobile and PC. The member center template is also very good! By the way, there are also corresponding locomotive collection rules! Regarding installation, upload the direct installation version, install it directly, and then restore the data in the background. There is a view more on the mobile phone. If there is a problem, you can copy the view more code in index.js on the PC. If it has not taken effect yet, please check whether the js file renderings are referenced...
👁 2697