mirror of
https://github.com/tansuotv/IPTVindex.git
synced 2025-07-30 05:20:28 +08:00
Update list.php
This commit is contained in:
parent
1b8f6027b7
commit
884680cf19
17
list.php
17
list.php
@ -1,22 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
header(‘Content-Type: text/json;charset=UTF-8’);
|
header('Content-Type: text/json;charset=UTF-8');
|
||||||
$dir=dirname(__FILE__);
|
$dir=dirname(__FILE__);
|
||||||
$files = glob(‘./list/*.txt’);
|
$files = glob('./list/*.txt');
|
||||||
|
$result='';
|
||||||
|
|
||||||
$result=”;
|
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
|
|
||||||
$fsize=filesize($file);
|
$fsize=filesize($file);
|
||||||
|
$myfile = fopen($file, "r") or die("Unable to open file!");
|
||||||
$myfile = fopen($file, “r”) or die(“Unable to open file!”);
|
|
||||||
$txt= fread($myfile,$fsize);
|
$txt= fread($myfile,$fsize);
|
||||||
fclose($myfile);
|
fclose($myfile);
|
||||||
$txt=$txt.“\r\n”;
|
$txt=$txt."\r\n";
|
||||||
|
|
||||||
$result=$result.$txt;
|
$result=$result.$txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $result;
|
echo $result;
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user