Re: An API for index.html contents?
Re: An API for index.html contents?
- Subject: Re: An API for index.html contents?
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 24 Jun 2005 10:35:46 -0500
On Jun 24, 2005, at 9:54 AM, Lorenzo wrote:
Thank you Joshua,
but I have to sell this application so I cannot say to the users to
install
the php script on their servers. I am thinking to implement an FTP
protocol
asking for the dir content. Do you think I am on the right path?
Any idea?
FTP is the wrong solution. Depending on the application, it will
require the user to install an FTP server or, at least, enable it.
Also, FTP is horribly insecure.
You haven't mentioned if the HTTP/Web server are all Apache or if you
are expecting to work with any random server. If the former, simply
parsing the HTML returned by the server is going to be the easiest
path to success.
If the latter, you are in for a world of testing. Web servers can
and will generate many different formats for directory indices.
Since this can also be easily configured by the administrator, it may
be disabled or altered. You will need to test carefully with each
of the possible server configurations you are planning on supporting
(which I would recommend doing anyway, even if only using Mac OS X on
the web server side -- it is Apache and there is variance).
b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden