Re: Trouble with uploading a file via ftp_put
| From: | Jason Wong | Date: | Mon, 06 Oct 2003 00:01:26 +0000 |
| Subject: | Re: Trouble with uploading a file via ftp_put | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30856@lists.php.net to get a copy of this message | ||
On Monday 06 October 2003 01:00, Ruprecht Helms wrote:
> On Sun, 2003-10-05 at 18:12, Jason Wong wrote:
> > On Sunday 05 October 2003 21:54, Ruprecht Helms wrote:
> > > actual I have the following script.
> > > I want to upload a image from the local pc into the subdir html of a
> > > webspace.
> >
> > You *are* running this script on the local pc aren't you?
>
> It's running on the destinationhost. So the destinationdirectory can
> only be the subdirectory html - the script itselves is html-directory.
Let me get this straight:
You're trying to transfer a file from a local PC (A) to a server (B). And your
code is running on (B)?
If so, then, (assuming you have things setup correctly, ie have an ftpserver
running on (A)), you should be using ftp_get() or similar.
If not, could you describe *exactly* what you're trying to do and explain why
you're not using a standard FTP client on the local pc to transfer the file
to the remote pc.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
Anyone who goes to a psychiatrist ought to have his head examined.
-- Samuel Goldwyn
*/