Thanks... I will take a hack at this. I contacted the client and might be
able to get them to pay to upgrade to 6. I like it when clients are like
that, eh?


  _____

From: Robert Shubert [mailto:[email protected]]
Sent: Tuesday, November 23, 2010 9:38 AM
To: [email protected]
Subject: RE: Witango-Talk: OT - FTP interactions



Over the years I've built tools for my hosting customers, one of them being
FTP. Attached is the raw code from that tool, and below are the
instructions:



I'm sorry that I can't work this up more, but I'm tied up with Witango 6
release, and once that's out all of this will be moot anyway. Note that this
is intended for Witango 5.5 so you might have to hack around with it. It's
also tested on Windows 2003, using the included FTP client.



Robert



This method provides basic FTP functions on-the-fly from within your
application. You can quickly upload and download files to any remote FTP
server. Keep in mind that the transfer time is counted towards your request
execution time and large transfers will likely timeout, although they should
complete.



Action: (Required) GET (download) | PUT (upload) | LIST (get a directory
listing).

File_Name: (Required for GET and PUT) This is the name of the file that you
wish to transfer.

File_Path: (Required for GET and PUT) This is the local directory in your
web folder that you want to transfer the file from or to.

Remote_Server: (Required) This can either be a host name (ftp.tronics.com)
or IP address.

Username: (Required for authentication) The username used to login to the
remote server.

Password: (Required for authentication) The password used to login to the
remote server.

Remote_Directory: (optional) You can specify a directory to change to on the
remote server after login but before the action.

Directory_Listing: (Out Parameter) Array. Only populated when using the LIST
action.



The method will return a transcript of the session with the remote server.
This is useful for debugging, but should be considered sensitive and should
not be stored or displayed except for debugging purposes.



You can only execute one action per call. The File_Path will automatically
be forced to your web site's root level. You can specify additional folders
if needed (path1\path2). The remote server can also accept a port number
after a colon such as 23.123.123.123:456. The Remote_Directory can also have
multiple levels defined at once (path1/path2).





From: WebDude [mailto:[email protected]]
Sent: Tuesday, November 23, 2010 8:09 AM
To: [email protected]
Subject: RE: Witango-Talk: OT - FTP interactions



Okay, so let's talk about command line tools and forget about diplaying
thumbs. Sorry, I have never tried using/firing command line tools from
Witango. Any hints on how to get started with this? Let's say I just want to
be able to list the contents (filenames) of a directory via ftp and possibly
parse that data out into a text file or an array. I am not sure where to
start. Any hints?



p.s. Windows OS...



Thanks!





  _____

From: Robert Garcia [mailto:[email protected]]
Sent: Monday, November 22, 2010 2:44 PM
To: [email protected]
Subject: Re: Witango-Talk: OT - FTP interactions

I used to use witango pretty successfully with FTP, but I was using a
special FTP server that came with a com object that worked with witango. It
was TitanFTP. Another way, is just working with command line tools. Once you
get it working, you can make an ftp class with chdir, ls, put, get routines,
etc.



Thumbnails are going to be a b*tch if you are going to try to to make the
thumb represent the content. I would say this is probably NOT doable unless
you have an FTP server that does this for you, and you have a webservice to
call. If it doesn't, you would have to traverse the site, cache your own
thumbs on a regular basis, very prohibitive.



A simple way of doing thumbs, is use OS X or windows thumbnails for the
TYPES of file that it is. So you just check if its extension is JPG, and use
a thumb for that, PDF, you get the idea. Then have a generic FILE thumbnail
for all else, and over time you can build up how many extensions you
recognize.



Good luck!


--



Robert Garcia

President - BigHead Technology

VP Application Development - eventpix.com

15520 Coutelenc Rd

Magalia, Ca 95954

ph: 530.645.4040 x222 fax: 530.645.4040

[email protected] - [email protected]

http://bighead.net/ - http://eventpix.com/



On Nov 22, 2010, at 6:01 AM, WebDude wrote:





This is way off topic, but I have a client who is asking some questions that
I am having a hard time answering. I was hoping some of you with more
knowledge then I can give me some direction. I see all sorts of probems with
this, but am trying to figure out what to say to him. I believe the files he
is talking about are pfd files. I would think, first off, that you would
need at least to have the directory structure along with filenames loaded
into the DB before you could do anything he is asking me to do. In other
words, it sounds like he wants to "crawl" the ftp site and load the
information into a db. And then just display the files via thumbs, probably
clicking them to add to a basket system, etc. Don't shoot me on this, I am
just the messenger, but below is what is being asked for word for word from
the client...



"I have a couple of key questions, one is how can a database interact with a
FTP?  Could a DB pull thumbnails from an FTP and display them on the web?
Could a DB understand from a folder location on a sever what value to assign
to it?  For example if the DB searched the server for a file, and file's
location was in folder 1, could it assign a price to it, if the DB
understood all items in folder 1 have a $10 value?"



My head hurts. I think he wants to be able to have the client find these
files, add them to a basket system, and download them when done.













  _____

To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe witango-talk" in the body.





  _____

To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe witango-talk" in the body.



  _____

To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe witango-talk" in the body.


  _____

To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe witango-talk" in the body.


----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

Reply via email to