What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [SOLVED] PHP file_exists complex!

[SOLVED] PHP file_exists complex!
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: PHP file_exists complex!
PHP code:
//Directories to search
$monitor = array(
'/home/admin/Downloads/Downloading/',
'/home/admin/Downloads/',
'/home/admin/ThirdFolder/'
);
 
//Looking for $release
$release = array('Back.To.The.Future','Forward.To.The.Past','NonExistingFolder');
 
$delete = array_flip($release);  
foreach ($monitor as $path) {
  foreach ($release as $name) {
 
    if (file_exists($path . $name)) {
      echo $name . ' exists in ' $path;
      unset($delete[$name]);     }
  }
}
 
$delete = array_keys($delete);


Dunno if it works, please try :p

This post was edited on 03-27-2010 at 04:49 PM by Mnjul.
03-27-2010 04:48 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[SOLVED] PHP file_exists complex! - by prashker on 03-27-2010 at 04:34 PM
RE: PHP file_exists complex! - by Mnjul on 03-27-2010 at 04:48 PM
RE: PHP file_exists complex! - by prashker on 03-27-2010 at 05:30 PM
RE: PHP file_exists complex! - by Mnjul on 03-27-2010 at 06:20 PM
RE: PHP file_exists complex! - by prashker on 03-27-2010 at 07:11 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On