mirror of
https://github.com/tansuotv/IPTVindex.git
synced 2025-07-29 13:00:29 +08:00
Add files via upload
This commit is contained in:
parent
3a3e03c935
commit
2c91963bb3
22
list.php
Normal file
22
list.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
header(‘Content-Type: text/json;charset=UTF-8’);
|
||||||
|
$dir=dirname(__FILE__);
|
||||||
|
$files = glob(‘./list/*.txt’);
|
||||||
|
|
||||||
|
|
||||||
|
$result=”;
|
||||||
|
foreach ($files as $file) {
|
||||||
|
|
||||||
|
$fsize=filesize($file);
|
||||||
|
|
||||||
|
$myfile = fopen($file, “r”) or die(“Unable to open file!”);
|
||||||
|
$txt= fread($myfile,$fsize);
|
||||||
|
fclose($myfile);
|
||||||
|
$txt=$txt.“\r\n”;
|
||||||
|
|
||||||
|
$result=$result.$txt;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $result;
|
||||||
|
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user