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.

Creating file in every sub-folder

Discussion in 'PHP' started by thesurface, Mar 23, 2010.

  1. #1
    Do someone know how can i creating new html file (index.html) in every sub-folder in php ?
    SEMrush
     
    thesurface, Mar 23, 2010 IP
    SEMrush
  2. superdav42

    superdav42 Active Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Use dir and loop through each directory recursively then use file_put_contents To write the index.html file in each subdirectory.
     
    superdav42, Mar 23, 2010 IP