<?php class CreateHtml { function mkdir( $prefix= 'article' ) { $y = date('Y'); $m = date('m'); $d = date('d'); $p=DIRECTORY_SEPARATOR; $filePath='article'.$p.$y.$p.$m.$p.$d; $a=explode($p,$filePath); foreach ( $a as $dir) { $path.=$dir.$p; if(!is_dir($path)) { //echo '没有这个目录'.$path; mkdir($path,0755); } } return $filePath.$p; }
Static document refers to a document with fixed content. It is created by the World Wide Web server and stored in it. When a client uses a browser to access the document in the World Wide Web server, a copy of the document is sent to the client, and the client can use the browser to display the document. Of course, the document content in the server can be modified, but the client cannot modify it. The biggest advantage of static documents is that they are simple and can be created by non-programmers. Its disadvantage is that it is not flexible enough. Therefore, documents whose content changes frequently are not suitable for static documents.
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
22Oct2024
This article discusses the execution of Java class files from PHP websites to utilize Java functionalities within web pages. The main issue is executing Java programs and retrieving their output in PHP. It provides solutions using the PHP exec() func
01Nov2024
Obtaining Class Name from Extended PHP Class Static CallIn object-oriented programming, classes often extend base classes to inherit and extend...
01Nov2024
Retrieving Class Name from Static Calls in Extended PHP ClassesProblem:A PHP class hierarchy exists, with a base class Action and an extended...
13Dec2024
Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...
30Oct2024
Retrieving Class Name from Static Call in Extended PHP ClassIn the world of PHP, it's often necessary to determine the classname from a static...
31Oct2024
Retrieving the Classname from a Static Call in an Extended PHP ClassExtending classes in PHP allows for the creation of subclasses that inherit...
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images