包含文件在远程服务器上不起作用

时间:2020-05-01 05:58:19

标签: php include

我包含要包含的文件的文件夹不起作用。我准备了一个脚本,只包含一次alla t,但是由于本地服务器上的情况,它们没有被包括在内。远程服务器根本找不到它们。

    <?php
   //Define directory separator
   define('DS',DIRECTORY_SEPARATOR);

   //Define the root directory
   define('ROOT',$_SERVER['DOCUMENT_ROOT'].DS.'timos');
   //echo ROOT."\n";

   define('INCLUDES',ROOT.DS.'includes');
   //echo INCLUDES;
   //Define php folder
   define('PHP',ROOT.DS.'PHP');

   //Define classes directory
   define('MYCLASSES',PHP.DS.'classes');
   //echo MYCLASSES;

   //Define models path
   define('MODELS',PHP.DS.'models');
   echo MODELS;
   //Define include dir


   //Define monthly reports path
   define('MONTHLY',ROOT.DS.'monthlyreports');

   include_once INCLUDES.DS.'sesscheck.php';  
   include_once INCLUDES.DS.'connector.php';

   include_once MYCLASSES.DS.'datatables.php';
   include_once MYCLASSES.DS.'DataObject.php';

0 个答案:

没有答案