PHP Updater Script + Question

Discussion in 'PHP' started by Fiverscripts, Dec 30, 2016.

  1. #1
    Hi All,

    Thought i would share a script i came across as it may be useful for you

    Its quite a good php updater script that explains it fairly well which im sharing with people (this is not mine and full credits goes to the author)

    Can be found here:

    http://maxmorgandesign.com/simple_php_auto_update_system/

    I have tested this on one of my scripts works quite well and loads of room to change things.

    The only thing i have noticed.. not sure if anyone on here has an edit or workaround is that if you include .png images with the update zip they go corrupt - i have seen this before i think its to do with binary mode or something? - anyone got a fix for it?

    Hope the script is useful for people

    Matt
     
    Solved! View solution.
    Fiverscripts, Dec 30, 2016 IP
  2. #2
    Quite possibly beacuse of
     $contents = str_replace("rn", "n", $contents);
    PHP:
    According to authour it ends up with erratic line spacing if this line is removed but otherwise should function. Could add a conditional statement to check if extension if PNG and do not str_replace
     
    Einheijar, Jan 7, 2017 IP
  3. Fiverscripts

    Fiverscripts Moderator Staff

    Messages:
    1,839
    Likes Received:
    42
    Best Answers:
    1
    Trophy Points:
    370
    #3
    that was exactly it, pretty good find and its a good script - thanks
     
    Fiverscripts, Jan 7, 2017 IP