An installer script for a  php script

Posted on 2007-10-12
Last Modified: 2007-10-12
I want to make an installer for my php script, can anyone pls guide me on how to start or is there any tutorial related to this ?
Question by:Desire2change
    LVL 17

    Expert Comment

    What do you exactly mean?

    Author Comment

    i want to create a install.php for my php application, which will install the script.
    LVL 17

    Accepted Solution

    There's no real tutorial.
    You can look at this page
    to get a list of file system functions.
    But basically you need to decide where you want the files to be installed to.
    Then check if the folders exists.
    If they don't then create it them.
    Create a file in the folder that you created, You need to place your code in a string, write that string to the file that was created on the server. Close the file.
    Repeat for ever file.

    OR to make it simpler,

    From the install dir, have it copy the file contents to the folders that were created.

    The link I sent will give you functions that you will need to perform these tasks.
    LVL 21

    Expert Comment

    If you were thinking about installer script for a database through PHP (ie installing and setting up all the MySQL tables from a script) then all you need to do is compile a list of queries and execute them using mysql_query (provided that you are connected to the MysQL server already using MySQL_Connect).

    Let me know if you want more information regarding this.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now