无法打开“analytics.php”进行收录

无法打开“analytics.php”进行收录

我知道这个问题已经被问过很多次了,也回答过很多次了,但是我的情况有什么不同吗?因为正如你所看到的,我的测试网站所在的目录的名称与子域名本身一样。这是我的托管服务提供商的特色,你只需用 URL 命名目录,它就可以正常工作。所以没有必要自己创建 Vhost。

PHP Warning:  include_once(): Failed opening 'analytics.php' for inclusion (include_path='.:/opt/remi/php81/root/usr/share/pear:/opt/remi/php81/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/virtual/user/test.example.de/wp-content/themes/x-child/framework/views/global/_footer.php on line 18

我可以直接运行:

echo(__DIR__);

进而:

include(__DIR__.'.:/opt/remi/php81/root/usr/share/pear:/opt/remi/php81/root/usr/share/php:/usr/share/pear:/usr/share/php');

如果是,我应该在哪里运行这些命令?

相关内容