How To Check Directory Exists On Website Verify Folder Is There In PHP
how to check directory exists on website verify folder is there in php
how, to, check, directory, exists, on, website, verify, folder, is, there, in, php
How To Check Directory Exists On Website Verify Folder Is There In PHP
Post Description: how to check directory exists on website verify folder is there in php
POST# 482
Posted On: Fri Feb 29, 2008 12:01 pm
php tutorial
Topic: How To Check Directory Exists On Website Verify Folder Is There In PHP
how can i very check or verify if a directory is in my website? for example, i want to check with my php script to know if there is a folder or a directory if so i want to tell the user that that directory still exists..??


Sat Mar 01, 2008 1:14 pm
1
hostman
Reply #1067
you can use the is_dir() function in php

lets say you want to check if the intsall/ directory still exists, you can write this php code:

<?
if (is_dir('install/')) {
$InstallError = "Your Install Directory Still Exists, Please Remove Immediately";
}
?>

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload