FTP writing is working

I officially have FTP file writing working and have built a configuration screen for it. The file writing config screen, which will be the first thing that you see in the initial configuration, lets you choose whether to use FTP for file writing and lets you enter your username, password, host, absolute path to your FTP root, and a path prefix (e.g. ~) if applicable. The script will attempt to detect the host and path automatically, although you can probably change the host to 'localhost' in many cases.

So far, the only complication I need to work out is how newlines work. See, the BBCode routine replaces single line breaks with an HTML break tag, while it uses double line breaks to indicate the start of a new HTML paragraph. However, for some reason, it isn't working correctly. I think the problem is related to FTP trying to automatically do the DOS/UNIX newline translation, but I haven't had much time to look at it yet. (For those who don't know, UNIX systems use one character to represent a line break whereas DOS and Windows use two characters.)

I've uploaded the new code to my web server and am posting with it right now. I've also added some more BBCode-style markup tags and fixed several bugs. That means that, with any luck, LnBlog 0.1.1 will be available for download soon.

You can reply to this entry by leaving a comment below. This entry accepts Pingbacks from other blogs.

Add your comments #

A comment body is required. No HTML code allowed. URLs starting with http:// or ftp:// will be automatically converted to hyperlinks.