Hongmu Notes
PHP dirname() function and

PHP dirname() function and Language Notes PHP

The code is as follows: `echo __FILE__; // Retrieves the absolute path of the current file; Output: D:\www\test.php` `echo "<br />";echo dirname(__FILE__); // Retrieves the absolute directory containing the current file; Output: D:\www\` `echo...`
👁 157
2022 Empire cms imitation website tutorial

2022 Empire cms imitation website tutorial Program Notes Empire cms

The video has been published on Bilibili, Xigua Video, TikTok, and Toutiao; however, since this tutorial is an enterprise website replication guide, some platforms may block certain episodes, but Bilibili does not have any issues. Bilibili: The latest 2022 Empire CMS enterprise website replication tutorial (No废话::: (smiling)) https://www.bilibili.com/video/BV1vS4y1j7Hi?share_sourc...
👁 382
How to use the rename function in php to rename files

How to use the rename function in php to rename files Language Notes PHP

// Check whether the file already exists: if (!file_exists($dbname)){ if(file_exists($ab_new_name)) {echo "A file with the same name '{$ab_new_name}' already exists.";} else {echo "...";}
👁 143
What are the differences between die(), exit(), and return in php?

What are the differences between die(), exit(), and return in php? Language Notes PHP

`die()` stops the program execution and does not output any content; `return` returns a value; `die()` stops the program only when an error occurs; `exit()` stops the program immediately without executing any subsequent code; `exit()` can optionally display output; `return` merely returns a value without executing any subsequent code; `exit(0)` terminates the program normally; `exit(1)` terminates the program due to an abnormal condition...
👁 170
A simple method to count the number of Chinese characters in PHP

A simple method to count the number of Chinese characters in PHP Language Notes PHP

This article demonstrates a simple PHP method for counting the number of Chinese characters. It is shared here for your reference; the details are as follows: Previously, at my previous company, which was engaged in foreign trade and primarily used English content, the `strlen()` function was used to count the length of strings – and this function had never caused any issues. However, when counting Chinese characters, this function began to fail. I am now conducting a test to document this issue: `<?php echo strlen("Hello ABC");...`
👁 171
css3 grid layout

css3 grid layout Language Notes CSS

1. Overview Grid layout (Grid) is the most powerful CSS layout solution. It divides web pages into grids, and different grids can be combined arbitrarily to create various layouts. Effects that were previously only possible through complex CSS frameworks are now built into browsers. A layout like the one pictured above is the specialty of Grid layout. Grid layout and Flex layout have certain similarities, both can specify the content...
👁 218
php division rounding

php division rounding Language Notes PHP

When using the "/" operator for division, if the division is not exact, a floating-point number will be returned. What should I do if I only want to obtain the integer part? 1. `round` — Rounds a floating-point number. `float round(float $val [, int $precision]);` Returns the value of `val` rounded to the specified precision `precision` (...
👁 160
PHP replaces string only once

PHP replaces string only once Language Notes PHP

This is a method I found online – quite useful. It is designed for when the string A appears multiple times within string B, and you need to replace the first occurrence of string A in string B with another string; for example, this technique can be used to add links to keywords within article content. $needle=&gt;字符串A,$replace=> – The new string to replace string A with; $haystack=...
👁 191
CSS rounded corners

CSS rounded corners Language Notes CSS

CSS rounded corners can be used to achieve the "rounded" style of any element through the CSS border-radius property. CSS border-radius property The CSS border-radius property defines the radius of an element's corners. Tip: You can use this property to add rounded corners to your elements! Here are three examples: Here is the code: Example #rcorners1 { border-r…
👁 226
Introduction to the use of empire CMS calling php functions

Introduction to the use of empire CMS calling php functions Program Notes Empire cms

I. `esub()` Field Extraction Function Syntax: `esub(string, number of characters to extract, suffix)`. Note: The suffix specifies the content appended after the extracted characters; this parameter can be omitted. Example usage: `<?=esub('12345678', 6)?>` returns: `123456`; `<=?=esub('12345678', 6, '…')?>` returns: `123...`
👁 263
1 298 299 300 301 302 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