如何在网络上显示 .nfo 文件中的内容?
How to show the content in a .nfo file on the web?
我需要找到一些插件或代码才能在网页上显示 .nfo 文件的内容(html 或 php)。计划是制作许多网页,每个网页都有一个 .nfo 文件,我不确定这是否适用于某些代码,或者是否有 script/portal/cms 具有此功能?
我已经 google 了 2 天了,但我能找到的只有 windows 观众等...没有任何基于网络的东西。这里有没有人可以帮助我?
提前致谢:)
尝试此代码并响应它是否有效(或无效):
echo readfile("yourfile.nfo");
如果你有台词试试这个
$handle = fopen("yourfile.nfo", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
echo $line."<br>";
}
fclose($handle);
} else {
// error opening the file.
}
不要忘记标签 ;)
我需要找到一些插件或代码才能在网页上显示 .nfo 文件的内容(html 或 php)。计划是制作许多网页,每个网页都有一个 .nfo 文件,我不确定这是否适用于某些代码,或者是否有 script/portal/cms 具有此功能?
我已经 google 了 2 天了,但我能找到的只有 windows 观众等...没有任何基于网络的东西。这里有没有人可以帮助我?
提前致谢:)
尝试此代码并响应它是否有效(或无效):
echo readfile("yourfile.nfo");
如果你有台词试试这个
$handle = fopen("yourfile.nfo", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
echo $line."<br>";
}
fclose($handle);
} else {
// error opening the file.
}
不要忘记标签 ;)