SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question php photo and quote display one by one after a fix time

    I am having a directory which has some photos and a directory which has quotes related to each photo , i want to display these photo and the related quote on my web page is it possible with php ,
    Last edited by vinodonline2000; Dec 14, 2006 at 23:18.

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what do you mean time interval function?

    how have you related the quotes to the images?

  3. #3
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation

    i mean i want to maintain a fix time b/w images and quotes to be displayed
    and how to manage photo and related quote is the bigger problem , i am thinkin that by the the same name of photo and its related quote can help

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im sorry i dont understand you.

  5. #5
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my basic problem is how to show photo and its quote one at a time

  6. #6
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how are the quotes stored? 1 quote per file? name of the quote is the filename?

  7. #7
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes

  8. #8
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    see scandir() and friends to read a directory.
    see pathinfo() to get the proper filename components.
    see file_get_contents() to get the quote out of the file.

    then you should be able to assemble the rest.


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
  •