1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help =)

Discussion in 'PHP' started by Licensescript.com, Mar 18, 2009.

  1. #1
    Hi,
    SEMrush
    I was trying to make a simple script to create lots of folders. The script below doesnt work please can someone amend! Thanks

    <?
    
    $arr=array('testfolder', 'testtwo');
    $value = each($arr);
    mkdir($value);
    
    ?>
     
    Licensescript.com, Mar 18, 2009 IP
    SEMrush
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $arr = array('testfolder', 'testtwo');
    foreach ($arr as $folder)
       mkdir($folder);
    Code (markup):
     
    SmallPotatoes, Mar 18, 2009 IP
  3. Licensescript.com

    Licensescript.com Well-Known Member

    Messages:
    287
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Ahh i did that but i put the {} in my mistake! Thanks big help :p works perfect
     
    Licensescript.com, Mar 18, 2009 IP