Re: [PHP] copying a directory

2003-10-26 Thread Gerard Samuel
On Monday 27 October 2003 12:58 am, Shawn McKenzie wrote: > Thanks, but I was looking for a multi-platform way via a function. rename() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] copying a directory

2003-10-26 Thread Shawn McKenzie
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 locat

Re: [PHP] copying a directory

2003-10-26 Thread Burhan Khalid
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: