Script Version & Update Checker

Discussion in 'PHP' started by koolasia, Feb 27, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Hey Guys

    I Need A Php Code Which Checks The Version And Tells If A Update Is Available Or No
     
    koolasia, Feb 27, 2007 IP
  2. lbalance

    lbalance Peon

    Messages:
    381
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    to check the version of PHP?
     
    lbalance, Feb 27, 2007 IP
  3. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no not php version the scripts version suppose i have a forum script in admin panel i can see wch version i am using and if any update is available it will tell me that there is an update available
     
    koolasia, Feb 27, 2007 IP
  4. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hers how:
    you put a text file on your server with the current version
    then in the php of the script, you compare the current version of the script to the version on that text file
     
    bobby9101, Feb 27, 2007 IP
  5. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #5
    and how do i get the script to read the text file ??

    Through fopen ??
     
    koolasia, Feb 27, 2007 IP
  6. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #6
    fopen or file_get_contents
     
    bobby9101, Feb 27, 2007 IP
  7. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok thanks will ask u if somethn goes wrong
     
    koolasia, Feb 27, 2007 IP
  8. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hey wat if url fopen is disabled on a server
     
    koolasia, Feb 27, 2007 IP
  9. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #9
    then use cURL or file_get_contents
     
    bobby9101, Feb 27, 2007 IP
    koolasia likes this.
Thread Status:
Not open for further replies.