Image

Imagezinear wrote in Imagephp

Two Questions

Is there an easy way to fill an array with data from a text file?
e.g. $array[0] = [line one from text file]; $array[1] = [line two from text file], etc.
I'm doing this for a picture gallery - each line will be a caption for a picture - if any of you other ideas, feel free to share. I realise a database might be a better way to do this, but the site will be relatively low traffic and I wouldn't think this would kill the server. But if I am sorely mistaken, apologies, since I'm new to this.

I'm also wondering if any of you know of any good PHP books to recommend? In particular: one that focused on working with databases and data manipulation as that's where I do not have much experience. Books that explain basic concepts less - since I tend to learn those as I program - and offer more examples are preferable.

Thanks for any help in advance.