Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // The directory path
- $dir = "testdir";
- // Check the existence of directory
- if(file_exists($dir)){
- echo "ERROR: Directory already exists.";
- } else{
- mkdir($dir);
- echo "Directory created successfully.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement