Image hosting php

Discussion in 'PHP' started by Rakaan, Jul 8, 2007.

  1. #1
    Hiya,

    Got an image hosting and it seems the images expires after a certain period of time. How can I make it so images never expire?

    http://www.imagegrip.com

    I know it's a bit vague but just need a bit of guidance what code should I be looking in my php files?

    Cheers
     
    Rakaan, Jul 8, 2007 IP
  2. daman371

    daman371 Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well you could be looking for a constant that determines the expiration time or looking around in the database assuming it uses a database for registration and holding constants.
     
    daman371, Jul 8, 2007 IP
  3. Rakaan

    Rakaan Well-Known Member

    Messages:
    256
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Yes it uses a database to store all images etc.
    Any idea what constant I should be looking at in the database?
    Sorry I am total newbie in this area.

    Thanks
     
    Rakaan, Jul 9, 2007 IP
  4. Cloudberries

    Cloudberries Peon

    Messages:
    74
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The value may well be in the database, or a seperate php file (perhaps config.php or somesuch? Maybe in an "includes" directory) which holds a lot of defined variables used throughout all the php scripts.

    I'd imagine it will be located in a file somewhere, that's the most straightforward way of storing variables anyway.

    You'd probably want to edit a variable with "Expiry" or "lifetime" or something like that in its name. Also look for variables with a value equal to the lifetime of the images on the site
     
    Cloudberries, Jul 9, 2007 IP