php-general | 2003022
Date: 02/16/03
- Next message: David Duong: "[PHP] Re: .htpasswd and PayPal generated passwords"
- Previous message: Miles Thompson: "Re: [PHP] Inserting records in a particular way in MySQL"
- In reply to: Jason Wong: "Re: [PHP] copy *.* troubles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 17 Feb 2003 01:59:43 +0800, Jason Wong <php-general <email protected>>
wrote:
> On Sunday 16 February 2003 23:48, Malcolm wrote:
>
>> I'm having trouble with copy. I have this script that I got from
>> php.net
>> 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.
>
> Are you using full paths? Does the directory 'maillist' reside in the
> root directory? If not, try using full paths.
>
Thanks Jason, but I think I've done that. I'm on windows.
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.
>> It echos files copied at the end but it
>> lies.
>
> I doubt whether PHP is clever enough to lie. It's only doing what you
> told it to do.
>
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
- Next message: David Duong: "[PHP] Re: .htpasswd and PayPal generated passwords"
- Previous message: Miles Thompson: "Re: [PHP] Inserting records in a particular way in MySQL"
- In reply to: Jason Wong: "Re: [PHP] copy *.* troubles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

