Php file operation details (2) create a directory & amp; nbsp; mkdir (& amp; quot ;. aa & amp; quot;); delete directory & amp; nbsp; the directory must be empty before deleting & amp; nbsp; rmdir (& amp; quot ;. img & amp; quot;); move the directory file & amp; nbsp; rename (& amp; quot ;. img & amp; quot;, & amp; quot ;. ajaximg & amp; quot;); create a php file (2) // create a directory mkdir (". /aa "); // The directory to be deleted must be empty before rmdir (". /img "); // Move the directory file rename (". /img ",". /ajax/img "); // create a file touch (". /11.txt"); // copy the file copy (". /11.txt ",". /ajax/11.txt"); // delete the file unlink (". /11.txt"); // read the file content (local, remote) echo file_ge
1. php file operations (2)
Introduction: PHP file operations
10. php file operations
Introduction: This article mainly introduces PHP file operations. For more information about PHP tutorials, see.
[Related Q & A recommendations ]:
The above is a detailed description of PHP file operations. For more information, see other related articles in the first PHP community!