Thanks, but I was looking for a multi-platform way via a function. I just bit the bullet and looped thru with readdir() and copied the files.
-Shawn "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shawn McKenzie wrote: > > > I need to copy a directory from one location to the other. I didn't find a > > function for this. Is copy() supposed to work on directories as well as > > files, or is there another? > > Unix : > > cp -r /old/dir /new/dir > > Windows : > > xcopy /E c:\old\dir c:\new\dir > > Use those with : > > http://www.php.net/manual/en/function.exec.php > > > > -- > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php