Re: FTP upload

From: Date: Wed, 23 Apr 2003 15:38:19 +0000
Subject: Re: FTP upload
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-145033@lists.php.net to get a copy of this message
Could the PHP function ftp_fput ( resource ftp_stream, string remote_file, resource handle, int mode [, int startpos]) do something with the resource handle - i.e. on some way to make the string as some other resource ( stream ) ? > Not sure what you mean by "host company may change my default directory"? If > it changes then change your code to match. It means, thath the host company can move my account on some other their server ( not to change user & pass ) only to change path on server to my directory. Thanks, Rosen "Jason Wong" <php-general@gremlins.biz> wrote in message news:200304232330.18386.php-general@gremlins.biz... > On Wednesday 23 April 2003 23:18, Rosen wrote: > > Thanks, but I'll need to do this with ftp commands, because on this way I > > must know the full path to my ftp directory, but > > host company may change my default directory and this will not work :(( > > > > $file = '/some/path/to/a/file'; > > Not sure what you mean by "host company may change my default directory"? If > it changes then change your code to match. > > > Can you tell me how can I do this with PHP FTP commands. > > I don't think you can do this using the ftp functions. It seems all the ftp > functions require that your source is an actual file. > > -- > 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-general > ------------------------------------------ > /* > You may be right, I may be crazy, > But it just may be a lunatic you're looking for! > -- Billy Joel > */ >

« previous php.general (#145033) next »