Thanks Jason, but I think I've done that. I'm on windows.On Sunday 16 February 2003 23:48, Malcolm wrote:I'm having trouble with copy. I have this script that I got from php.netAre you using full paths? Does the directory 'maillist' reside in the root directory? If not, try using full paths.
but I can't figure out how to set the path. Right now it doesn't complain
but no files are copied. I'm trying to use a dynamically set directory to
do this, I have included ml_config to make the vars available. That's why
the $listname in the to_path. I want all the files from /maillist to got to
/$listname, I've tried all kinds of slashes, dots and anything else but I
can't seem to copy any files.
I've tried c:\foxy\www\maillist\
c:\\foxy\\www\\maillist\\
.//mailist
/maillist
../maillist
anything I could think of
and tried to go to c:\foxy\www\maillist\$listname (or newlist - the current valuse of $listname)
c:\\foxy\\www\\maillist\\$listname (or newlist - the current valuse of $listname)
.//mailist/$listname (or newlist - the current valuse of $listname)
/maillist/$listname (or newlist - the current valuse of $listname)
../maillist/$listname (or newlist - the current valuse of $listname)
none of these and probaly many others, I lost track, work.
I doubt whether PHP is clever enough to lie. It's only doing what you told it to do.It echos files copied at the end but it lies.
I'm thinking it's smarter than I am.
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php