Creating an install script

Discussion in 'PHP' started by blackburn2413, Nov 7, 2010.

  1. #1
    So I thank you all again for your help on a few small issues I have had in the past. Now my script is complete, exactly how I want it. My question \ new project is that I have specifically place info in my script like SQL Database info, usernames and passwords, and things like names \ banners.

    I want to be able to create an install script so if I decide to market this script at any point, someone could install the script fully without my assistance.

    Anyone have any documentation how I can accomplish this? Basically what I need is have one php page open other pages in the file structure and replace text. The other thing would be for the user to be able to upload a new banner and have that file renamed correctly and placed in the right folder. Thats what I'm going for with this.

    Any ideas?
     
    blackburn2413, Nov 7, 2010 IP
  2. Zetiz

    Zetiz Active Member

    Messages:
    668
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #2
    I have also the same question and will be glad if any one answers.
     
    Zetiz, Nov 7, 2010 IP
  3. blackburn2413

    blackburn2413 Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Zetiz, I am looking around online for a few ways to accomplish this as well while I'm waiting for an answer. If I figure it out before I get a response, I'll let you know.
     
    blackburn2413, Nov 7, 2010 IP
  4. blackburn2413

    blackburn2413 Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Zetiz, I am stupid for not seeing it earlier. A friend here helped me see it. Instead of a full install script, you can have a form to allow user input for things like sql database name and server info, site name, ect. Then that form will take that data as variables and A: Create the sql database and tables, ect. and B: it will make a config.php file with the variables that can be stored and used sitewide. Thats how I will set mine up to run now. Hope this helped you out too!
     
    blackburn2413, Nov 7, 2010 IP
  5. Zetiz

    Zetiz Active Member

    Messages:
    668
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Thanks for informing.. It will really help me.
    Regards!
     
    Zetiz, Nov 9, 2010 IP
  6. CreativeArmory

    CreativeArmory Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Like blackburn said you will need to have the user upload basic files and then input their database connection info. Your install script will basically just set up the database with basic Create statements and inserts. Good luck!
     
    CreativeArmory, Nov 9, 2010 IP