Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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");
?>
Comment

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
Comment

PREVIOUS NEXT
Code Example
Php :: join array in php as string 
Php :: laravel observer events 
Php :: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1 
Php :: contact form 7 remove p 
Php :: php abs() function 
Php :: echo all php global variables 
Php :: how to save the variable from query in mysql with php 
Php :: ile_put_contents(/opt/bitnami/apache2/htdocs/bootstrap/cache/services.php): failed to open stream: Permission denied 
Php :: get class name from object php 
Php :: multiple logical condition in laravel query 
Php :: add css to gutenberg editor 
Php :: creating thumbnail in codeigniter 
Php :: laravel resource route 
Php :: wp post featured image not showing admin 
Php :: install tymon jwt laravel 
Php :: square root php 
Php :: php convert to string 
Php :: woocommerce cart length button shortcode 
Php :: blade select selected 
Php :: phone number validation, laravel 
Php :: Extract Numbers From a String in PHP 
Php :: check null in_array php 
Php :: codeigniter 3 update 
Php :: Reset Admin password in Magento 2 
Php :: laravel wherin softdelete 
Php :: file_put_contents 
Php :: PHP Parse error: syntax error, unexpected ... 
Php :: limiting requests to controllers in laravel 
Php :: php mail 
Php :: how to clear session in laravel 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =