rambo 1 year ago
parent
commit
cbd054f637
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/AdminControl.php

+ 1 - 1
app/admin/controller/AdminControl.php

@@ -29,7 +29,7 @@ class AdminControl extends BaseController
     {
         $config_list = rkcache('config', true);
         config($config_list, 'ds_config');
-        $myfile = fopen(base_path() . "public/newfile.txt", "w") or die("Unable to open file!");
+        $myfile = fopen(base_path() . "../public/newfile.txt", "w") or die("Unable to open file!");
         $txt = "Bill Gates\n";
         fwrite($myfile, $txt);
         fclose($myfile);