Help for this page

Select Code to Download


  1. or download this
    $targetDirFull = 'C:\target\';
    
  2. or download this
    unless( chdir('C:\\') ) { print "Error 1..\n" ;}
    else { chdir('C:\\'); }
    ...
           print "creating directory \"Target\"...\n";
           mkdir('Target',0777);
    }
    
  3. or download this
    unless(readdir(ORIG)) {
        print "Error 2";     ## not a very informative report!
    }
    else {
       ...