所以基本上我在/var/www/ankh.ga/public_html/bot/changelog.php
中有一个php文件。我试图让它从/root/changelog.txt
读取文件,但它一直说这个文件不存在。我试图包含./root
和/root
,但他们都说该文件不存在。有没有办法让changelog.php包含changelog.txt?
如果有帮助,网站将在DigitalOcean VPS(Apache / Ubuntu)上运行。
/var/www/ankh.ga/public_html/bot/changelog.php
<html>
<?php include '/var/www/ankh.ga/public_html/include/header.php'; ?>
<body align="left">
<h1 style="margin-left:20px;">
Changelog
</h1>
<pre><xmp style="font-family:monospace;background-color:#ffffff;display:inline-block;margin-left:20px;padding:10px;border-radius:10px;"><?php include '/root/changelog.txt'; ?></xmp></pre>
</body>
<?php include '/var/www/ankh.ga/public_html/include/footer.php'; ?>
</html>