problem to create schedule script

Help
2011-10-05
2013-05-30
  • Djill KIOTOZA
    Djill KIOTOZA
    2011-10-05

    Hi !
    I'm searching everywhere and I can't find anything that solve my problem.
    When I try to create a script from schedule backup I have an error: Can't write to name.php
    Here is the generated script:

    <?php
    // This code was created by phpMyBackupPro v.2.2 
    // http://www.phpMyBackupPro.net
    $_POST['db']=array("mysql", );
    $_POST['comments']="test";
    $_POST['tables']="on";
    $_POST['data']="on";
    $_POST['drop']="on";
    $period=(3600*24)*1;
    $security_key="";
    // switch to the phpMyBackupPro v.2.2 directory
    @chdir("/var/www/html");
    @include("backup.php");
    @chdir("");
    ?>
    

    Thanks in advance for help.

     
  • Dirk
    Dirk
    2011-10-05

    It seems like you don't have permissions to write to "name.php"
    Change the permissions of th eparent folder or just copy the generated script to the clipboard, paste it into a new text-file, name it "name.php" and upload it by FTP to the folder you selected on the "scheduled backup" tab.

    Good luck!

     
  • Djill KIOTOZA
    Djill KIOTOZA
    2011-10-06

    Great !
    I change the path where I want to save this script to /path/to/pMBP dir and I chown apache on this path.
    Now I can create the script called name.php directly from pMBP. Sorry for this stupid mistake.
    Thanks for the help!