Instance 15 directory creation, deletion
Copy CodeThe code is as follows:
$dirfile = "folder";
$dirfile =iconv ("UTF-8", "GB2312", $dirfile);//transcoding, otherwise you will see the inside of Windows is garbled, but the program can operate
The Opendir () function opens a directory handle. If the function
succeeds, it returns the directory handle resource. The failure returns FALSE.
If the path is not a legal directory, or if the directory cannot be opened due to a license
It's all right. Write the function that the directory wants to close
including traversing files under this folder, directory subdirectories read the current file under directories and files delete the directory subdirectories under the current
In any computer device, files are all necessary objects, and in Web programming, the operation of the file has always been a headache for web programmers, and, the operation of the file in the CMS system is a must, very useful, we often encounter
1. File directory operation
The topmost stop is the disk root directory, with '/' or '//'
Current directory./
.. /indicates that the Apache directory is the Htdocs directory
1. Creating and Deleting Directories mkdir
Copy CodeThe code is as follows:
1. File directory operation
The top stop record is the disk root directory, with '/' or '/'
Current directory./
.. /Represents the Apache directory, the Htdocs directory
1. Create and delete directories mkdir
Copy Code code as follows:
Main Compatibility: PHP 5
First, chdir--Change Directory
Syntax: BOOL ChDir (string directory)
return value: Integer
Function Type: File access
Content Description:
Change the current directory of PHP to directory. Directory: The new current
Definitions and usageThe mkdir () function creates a directory.
If successful, returns TRUE, otherwise returns false.
Grammarmkdir (path,mode,recursive,context) parameter descriptionPath required. Specify the name of the directory you want to
Instance 15 directory creation, deletion
Copy Code code as follows:
$dirfile = "folder";
$dirfile =iconv ("UTF-8", "GB2312", $dirfile);//transcoding, otherwise you will see the inside of Windows is garbled, but the program can
First, Introduction
In any computer device, files are all necessary objects, and in Web programming, the operation of files has always been a headache for web programmers, and the operation of files in the CMS system this is necessary, very useful,
First, Introduction
In any computer device, files are all necessary objects, and in Web programming, the operation of files has always been a headache for web programmers, and the operation of files in the CMS system this is necessary, very useful,
Installation of PHP and its modules
We know that ASP operation requires PWS or IIS server support, without these two servers, it can not run. ASP server-supported installations typically include ASP
The language interpreter and the WEB server.
In
Convenient for everyone to reprint and offline reading, this tutorial HTML source code, UBB source, pdf version, flash version to provide download.Download Address: Http://code.google.com/p/wpmi/downloads/list
Operating system:
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.