Re: copying a directory

From: Date: Mon, 27 Oct 2003 05:58:24 +0000
Subject: Re: copying a directory
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-167680@lists.php.net to get a copy of this message
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" <phplist@meidomus.com> wrote in message news:3F9CA3D2.3030607@meidomus.com... > 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

« previous php.general (#167680) next »