note 79275 rejected from function.rmdir by nlopess

From: Date: Mon, 19 Nov 2007 12:02:49 +0000
Subject: note 79275 rejected from function.rmdir by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132401@lists.php.net to get a copy of this message
Note Submitter: brotherhood4 at gmail dot com ---- Can anybody help me with a simple php script? I need a script that read a directory /intranet. In the folder /intranet are subdirectorys. Some off the subfolders are empty. I want to use a script that reads the directory /intranet and that the script removes every folder that not includes any files or folders. If a subfolder contains a nother folder and that folder contains files the folder must not be removed. Can any body help me out with this problem?

« previous php.notes (#132401) next »