How can I do the following..

Discussion in 'PHP' started by stephan2307, Feb 22, 2010.

  1. #1
    Hi,

    I am building a piece of php/mysql driven software. I love wordpress and how they have the automated update and plugin support.

    Does anyone have any info how I can create a plugin support for my software (not the wordpress ones of course) and how I can create an update functionality would be great.

    Thanks for any help or advice.

    Stephan
     
    stephan2307, Feb 22, 2010 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    well i am not sure how word press works but i think the code changes are recorded and then as per the files are edited by the system
     
    Bohra, Feb 22, 2010 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #4
    shallowink, Feb 22, 2010 IP
  5. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #5
    for the update, you can:
    store the version number of your software in the script, and somewhere on your server store a text file with latest release.
    once every week, send a http request to this text file and see if latest release is the one installed, if not either prompt, or download new files.

    for the plugin, there are many different ways. WP uses "hooks" (checks the plugin directory at different stages to see if any plugin has a "function" for this stage, and then executes it)
    you can develop such a functionality in your software, but there are different ways to do it.

    Thanks :)
     
    JEET, Feb 22, 2010 IP
  6. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #6
    Thanks for all the help. I will look into all of those ideas and hints and if I have any more questions I will ask again.
     
    stephan2307, Feb 23, 2010 IP