Sunday, April 5, 2009

Progress, Brick Walls

Okay, I'm done for the night.

Progress: Managed to get file uploads to write file path, caption and usernames to the .txt file, although for some reason the /n is not causing it to line break. I've also managed to set cookies and basically work out the login and registration pages.

Brick Walls: Now that I've got the file info writing to the .txt file, I have to figure out how to a) get it to line break and b) turn into an array which I can then get to appear on the homepage as actual images. I have no idea how to do this.

If you want to see what I have so far, click here.

1 comment:

  1. Hey Matt,

    To get a line break you need to use a backslash, as opposed to a regular slash. So a line break would be: "\n", tabs would be "\t" etc. I had the same problem.

    This article helped me out a bit with reading the file:
    http://www.theukwebdesigncompany.com/articles/article.php?article=165

    Bryan

    ReplyDelete