is dir php
<?php
$myfile = "user/home/documents/gfg";
// checking whether a file is directory or not
if (is_dir($myfile))
echo ("$myfile is a directory");
else
echo ("$myfile is not a directory");
?>
is dir php
<?php
$myfile = "user/home/documents/gfg";
// checking whether a file is directory or not
if (is_dir($myfile))
echo ("$myfile is a directory");
else
echo ("$myfile is not a directory");
?>
check dir php
The file_exists() function in PHP is an inbuilt function which is used to check whether a file or directory exists or not. The path of the file or directory you want to check is passed as a parameter to the file_exists() function which returns True on success and False on failure
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us