Re: Hoping for a working example of SFTP in PHP

[email protected] ("R. Eric Wheeler")
Newsgroups php.general
Message-ID <CAOBuhSvbqKEssebpqewb5ueqYsp0BuEO3jzp+rg6dmx6kmbCNA@mail.gmail.com>
I just tested with a non writable directory on the remote and get a
different error.

Echo the variables before the call to copy just to know for sure they have
the right values.

print "local file " . $localFile
print "remote ". $remoteFile

Thanks


On Sun, Feb 7, 2021, 12:46 PM David Spector <[email protected]>
wrote:

> Dear Eric, I in your program, I have:
>
> copy($localFile, $streamUrl)
>
> According to the PHP Manual, this is correct. It will copy the local
> file to the destination.
>
> I don't know how to debug this further.
>
> David
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.