Results 1 to 3 of 3

Thread: PHP Photo Album script add description from text file

  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album script add description from text file

    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/dynamici...photoalbum.htm

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

    please help me out!

    thank you!

  2. #2
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You can use include() for this:
    PHP Code:
    <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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •