Explorar el Código

include 用绝对路径

visuddhinanda hace 4 años
padre
commit
0e8319732a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      public/app/studio/pc_get_pali_text.php

+ 2 - 2
public/app/studio/pc_get_pali_text.php

@@ -2,8 +2,8 @@
 /*
 加载巴利原文
  */
-include "../config.php";
-include "../public/_pdo.php";
+include __DIR__."/../config.php";
+include __DIR__."/../public/_pdo.php";
 
 $get_book = $_GET["book"];
 if (substr($get_book, 0, 1) == "p") {