Results 1 to 5 of 5

Thread: How this work ???

  1. #1
    Join Date
    Feb 2003
    Location
    JB
    Posts
    26
    Rep Power
    0

    How this work ???

    How to use this tag.this tag is to create new empty folder right ?but it return an error when i run it.how to modified it so it can create a new empty folder ?

    PHP Code:
    <?php 

        $path 
    "**path**"// source folder = not empty folders 
        
    $dir=opendir($path); 
        while (
    $file2 readdir($dir)) { 
        if (
    $file2 != ".." AND $file2 != ".") { 
        
    $dirname "**path**" $file2// target folder = empty folders 
        
    mkdir($dirname0777); 
        } 
        } 
        
    closedir($dir); 
        echo 
    "directory created"
        
    ?>

  2. #2
    Join Date
    Feb 2003
    Location
    Kluang, Johor
    Posts
    2,367
    Rep Power
    248
    you need to replace the **path** with your source directory.

  3. #3
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    232
    eg:

    $path = "/www/archive/";
    ....
    $dirname = $path . $file2;

    if $file2 look like this /www/images

    php will create new file like above /www/images
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

  4. #4
    Join Date
    Mar 2004
    Location
    malaysia
    Posts
    96
    Rep Power
    189
    got it, koisempoi?

  5. #5
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    232
    dah la tu kot
    I hate when:

    vBulletin Message:
    Sorry! The administrator has specified that users can only post one message every 60 seconds

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Work at home
    By veep1331 in forum Job Vacancies
    Replies: 1
    Last Post: 13-07-2009, 12:06 PM
  2. How come he doesn't have to work???
    By RB388 in forum Member Introductions
    Replies: 14
    Last Post: 10-01-2007, 11:53 PM
  3. Don't want to pay to work at home?
    By gold2006 in forum Job Vacancies
    Replies: 1
    Last Post: 08-04-2005, 03:03 PM
  4. My First PHP didn't work!
    By maman in forum Website Programming
    Replies: 8
    Last Post: 27-10-2004, 02:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112