PDA

View Full Version : PHP Photo Album script add description from text file



patbb
02-24-2009, 09:17 PM
hello

i would like to know how to get a description for each pictures taken from a .txt (or whatever) file in the same folder as the pictures; to be inserted in a <title> tag or something similar.

1.jpg = the picture
1.txt = the description

http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

seems fairly simple for you pros but i just can't figure it out.

please help me out!

thank you!

patbb
02-25-2009, 04:35 AM
okay; looks like this isn't going to work so...

i got $20 for the first person to figure this out for me (must be proper)

thru paypal.

ps: I just guess $20 is plenty since this seems pretty basic to me for a decent programmer but i might be wrong, not trying to lowball. $20 for 5 minutes, not bad.

pps: hope this isn't frown upon around here, and if it is, sorry.

Snookerman
02-25-2009, 06:18 AM
You can use include (http://se2.php.net/include/)() for this:

<title><?php include '1.txt'; ?></title>
All you need to do is put the description (or whatever you want to appear) in the 1.txt file.

Good luck!