Re: [PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Al
What puzzles me is that one path must be absolute and the other relative to the root. And, I've got chdir to the destination dir. I know about ftp having its own root. In my code, I have a check to make certain the ftp root is the same as the $_SERVER[document_root]. Richard Lynch wrote: O

Re: [PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 2:37 pm, Al wrote: > Can anyone explain what's going on. > > If I assign $source= $source_dir . $file; > $source_dir is the absolute path i.e., > /home/x/public_html/EditPage/ > > And $dist= $dist_dir . $file; > $dist_dir is simply relative to $_SERVER[document_root]; i.e

[PHP] Question about using ftp_put() for copying files

2007-05-24 Thread Al
Can anyone explain what's going on. If I assign $source= $source_dir . $file; $source_dir is the absolute path i.e., /home/x/public_html/EditPage/ And $dist= $dist_dir . $file; $dist_dir is simply relative to $_SERVER[document_root]; i.e., just plain /test To get ftp_put() to work, I must