Fri, 17 May 2024


How to check if a specified filename is a directory?

By: Peter, NetArt Media
Sat, 2 January 2021

For this purpose you may use the special php function, called is_dir, for example:

<?php

if(is_dir($YourFileName))
{

...

}
else
{

...
}

?>


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox