Re: An API for index.html contents?
Re: An API for index.html contents?
- Subject: Re: An API for index.html contents?
- From: Lorenzo <email@hidden>
- Date: Fri, 24 Jun 2005 18:58:17 +0200
Hi Bill, thank you for your suggestion.
actually I get a line for any file or folder listed in that remote folder
<IMG SRC="/icons/folder.gif" ALT="[DIR]">
<A HREF="folder_01/">folder_01/</A> 22-Jun-2005 04:34 -
I suppose that I can get easily the string "folder_01/"
because any server will be listing the content within the tag <A HREF="
Do you think so?
But I cannot take seriously the date of the file "22-Jun-2005 04:34"
because I guess that it could vary on the different servers.
The date format can be different and the date string could be placed in a
different point of the text line... Great dilemma.
What I have to do is a small sync between the remote and the local jpg files
at launch. I thought it was easier and that I could have counted on a
standard protocol. But I am realizing it is not so. True?
Best Regards
--
Lorenzo
email: email@hidden
> From: Bill Bumgarner <email@hidden>
> Date: Fri, 24 Jun 2005 10:35:46 -0500
> To: Lorenzo <email@hidden>
> Cc: "Joshua D. Orr" <email@hidden>, email@hidden
> Subject: Re: An API for index.html contents?
>
> 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