HELP modifing php script - needs to auto delete installation folder after install

Discussion in 'PHP' started by MarketTNT, Apr 5, 2012.

  1. #1
    I sell my clients a hosting package (free sub domain) with Web Host Manager, so that they can access several saas.
    I have the applications inside WHM "skel" folder. I do not give them file manager or FTP access to prevent access to scripts.
    They do have access to MySQL, PHPmyAdmin and Cron
    The client can set up dbs and then run the installation file by typing in their browser "client.mydomain.com/application/install"
    At my leisure, I can eventually delete their install directories.

    However, I have one application that requires deletion of the install directory before using the app.

    Is there a way to modify the script(s) to automate deletion of a install folder inside a script after installation without file manager or FTP access?

    If this is possible, pls indicate how much your help will cost me :)
     
    MarketTNT, Apr 5, 2012 IP
  2. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #2
    lol..
    Try: rmdir
    more specifically: php.net/manual/en/function.rmdir.php#107233
    considering that the install directory would not be empty. You can easily mod that function to tailor to your needs.



    Free at my leisure! :cool:
     
    ROOFIS, Apr 6, 2012 IP