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

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

Create a folder in php and set the access permission to 7777
define('CACHE_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'cacheFile'); 
if(!file_exists(CACHE_ROOT)){ 
      mkdir(CACHE_ROOT,0777); 
      chmod(CACHE_ROOT,0777); 
} 
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

PHP ob function record

PHP ob function record Language Notes PHP

Usage of the following three functions ob_get_contents(); ob_end_clean(); ob_start(); You can use these functions to buffer local files and execute local script code. Use ob_start() to save the output code into the buffer, and the page will not be displayed; then use ob_get_contents to get the data in the buffer. o…
👁 143
PHP preg

PHP preg Language Notes PHP

The preg_match_all function is used to perform a global regular expression match. preg_match_all() Syntax int preg_match_all ( string $pattern , string $subject [, array &$matches [, int $flags = PREG…
👁 169
Detailed explanation of PHP ternary operator and if

Detailed explanation of PHP ternary operator and if Language Notes PHP

Ternary operator condition ? Result 1 : Result 2 Explanation: The position in front of the question mark is the condition for judgment. If the condition is met, the result is 1, and if it is not met, the result is 2. This article compares and explains the ternary operator and if...else... in detail. I hope it will be helpful to everyone. Today when I was revising my paper online, I encountered a statement that I couldn’t understand: $if_summary = $row['IF_SUMMARY']=…
👁 191
PHP cast type

PHP cast type Language Notes PHP PHP collection PHP and mysql

Get the data type 1. If you want to check the value and type of an expression, use var_dump(). 2. If you just want to get an easy-to-read type expression for debugging, use gettype(). 3. To check a certain type, do not use gettype(), but use the is_type() function. Converting Strings to Numbers When a string is evaluated as a number, the result is determined according to the following rules...
👁 232

Recommended reading

Responsive English Website Template for Perfume Export Enterprises – 0479

Responsive English Website Template for Perfume Export Enterprises – 0479 Practical Collection Yiyou template

An EyouCMS responsive English-language website template designed for international perfume trading enterprises. Its contemporary, international design style effectively showcases perfume products, brand stories, export advantages, and global market presence. The English version enables perfume brands to present their brand image effectively in the international market. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (E...
👁 50
Home Furnishings & Interior Design – International Trade Responsive English Website Template 0480

Home Furnishings & Interior Design – International Trade Responsive English Website Template 0480 Practical Collection Yiyou template

This EyouCMS responsive English-language website template is ideal for the home decoration and furniture export industries. Its international, professional design style effectively showcases furniture products, home decoration solutions, export advantages, and global market presence. It helps home furnishing brands enhance their brand image in the international market and secure overseas orders. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS...
👁 30
Children's Wear Foreign Trade Responsive English Website Template 0481

Children's Wear Foreign Trade Responsive English Website Template 0481 Practical Collection Yiyou template

An EyouCMS responsive English-language website template designed for children's wear export trade. Its fashionable and playful design effectively showcases children's clothing products, brand stories, export advantages, and global market presence. This template helps children's wear brands promote their products in international markets and expand their overseas sales channels. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 59
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 199
Maternal and Infant Products Chain Store Website Template 0482

Maternal and Infant Products Chain Store Website Template 0482 Practical Collection Yiyou template

This set of eyoucms templates is suitable for maternal and infant product chain stores. The design style is warm and professional, and can display maternal and infant product products, chain stores, brand stories and parenting knowledge. It helps maternal and infant brands display their products online and attract parent consumers and franchisees. Template display Installation instructions Website backend: /login.php Account: admin Password: admin Related articles Summary of common problems in Yiyou CMS installation Yiyou C...
👁 39
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517