This blog if there is insufficient to write the place also hope that readers will not hesitate to enlightenIntroduce the symbol in the blog: [] Everything is not fixed, ... Indicates that there can be more than one!Basic knowledge of filesFile
In DOS, files and directories are the most important concepts, which is different from 951, and "directory" is called "folder" in 95.
If we want to view the files on our computer, we can enter the dir command and return. Here are the results shown
Directory1. Introduction to Commands2. Common parameter Introduction3. Example4. Direct access to the bottomIntroduction to CommandsLike the zip command, gzip for file compression, gzip compressed file extension ". gz",gzip Delete source files after
Reference: "Bird's-brother Linux private Cuisine" The first seven chapters, 17/12/5 review
File permissions
Rwx421;-r recursion; user, user group, other
Umask View default directory: 0002, that is, the other took off the
[[email protected] data]# Ls-l|grep ^a to filter out the file by the start of aIn the result of Ls–l, the directory begins with D-the normal file.[Email protected] data]# cat/etc/ssh/sshd_config|grep–v ^ #排除以 # start[[email protected] data]#
This article mainly introduces PHP for file and directory creation, deletion, copy, check the operation, interested in the friend's reference, I hope to be helpful to everyone.
This article describes the PHP file operation related classes,
/* My program in foreign Srever, my own program to store where, I am very difficult to remember.
So made up a simple directory recursive function, view my program, very convenient.
*/
function tree ($directory)
{
$mydir =dir ($directory);
echo "
/* My program in foreign Srever, my own program to store where, I am very difficult to remember.
So made up a simple directory recursive function, view my program, very convenient.
*/
function tree ($directory)
{
$mydir =dir ($directory);
echo "
Before I tell you about these functions, let me explain them to you. Because it is a common use for understanding functions, the contextual content parameters of some functions are omitted to make it easier for you to master function usage more
1> BOOL
file_exists(String $filename)
Check whether a file or directory exists
2> int filesize (string $filename)
Gets the size of the specified file
3> string filetype (string $filename)
Returns the type of the file.
First, the file default permissions: Umask 1, umask refers to the current user in the new file or directory when the default permissions, such as 0022;2, by default, the user creates a file with a maximum permission of 666; The maximum permission to
This is the time to learn about the VPS backup file content, because after using the VPS all security issues need our own processing, including the security of the website files. We can choose to make regular manual backups, or we can choose to
* * My program in foreign Srever, my own program stored to where, I am very difficult to remember.
So a simple directory recursive function, see my program, very convenient.
*/
function tree ($directory)
{
$mydir =dir ($directory);
echo "
";
while ($
JavaScript is a Web page production can not be separated from the scripting language, relying on it, a Web page content is lively, full of vitality. But maybe you haven't found and applied some of its more advanced features? For example, files and
The examples in this article describe the methods for files in the PHP statistics directory and the size of directories in the directory. Share to everyone for your reference, specific as follows:
". $fileName. " = = = ". Date (" Y-m-d h:i:s ",
* * My program in foreign Srever, my own program stored to where, I am very difficult to remember.
So a simple directory recursive function, see my program, very convenient.
*/
function tree ($directory)
{
$mydir =dir ($directory);
echo "";
while
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.