[nycphp-talk] FTP client
Brian
brian at preston-campbell.com
Sun Jan 12 19:57:34 EST 2003
http2ftp was one of about 10 clients I have mulled through over the past week.
If I recall correctly, this script merely echos a canned response upon the
completion of a file transfer and not the actual response of the FTP server.
I may have to find another solution, as there it appears there is no simple
way to do this. pfsockopen() looked promising and I am working on a test
script right now, but I am sceptical as this function involves actual files
being read.
I will be looking at the source of some C FTP clients to get an idea of how to
receive the requisite data and how those programs handle output. We'll see.
The command line may be the only option since the product vendor has never
even bothered to produce an alternative means of firmware upgrade.
Brian
On Sunday 12 January 2003 05:33 pm, Kayra Otaner wrote:
> Hi,
>
> I guess you may want to have a look at source code of Http2Ftp
> (http://obua.org/sections.php?op=viewarticle&artid=9) This script basically
> creating a web based full featured ftp client and allows everyone
> upload&download files using simple browser interface.
>
> But as an answer to your more detailed question I can say that you may not
> be able to show process indication on Php if you are trying to create HTML
> output. But try to use "<pre>" tag and echo any content after this HTML
> tag, this may provide you to show some sort of process indication. If you
> use Php Cli interface you can send output to stdout and this can help you
> to show process (upload/download) status.
>
>
> Best
>
> Kayra Otaner
>
> --- Brian <brian at preston-campbell.com> wrote:
> > Anyone have any experience with PHP's FTP functions? I am working on a
> > specialized FTP client that will update flash rom in an embedded system.
> > On an AMP system, I want to be able to basically automate the process
> > since the current method is from the command line.
> >
> > The only problem I am facing, since I have taken care of making the
> > connection and issuing the commands to the server, is parsing the
> > response from the server. In this case, outputting the response to the
> > browser is essential.
> >
> > To go into more detail, at the command line, once the connection has been
> > made the 'hash' function is called. The server shows the progress of the
> > file transfer in '#' hash marks and proceeds with the update, also
> > outputting any further response from the server. I want to emulate this
> > process in the PHP script. Any help would be greatly appreciated.
> >
> > Brian
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk
mailing list