I'v got a txt file that gets generated when ever I upload something, and it has the following info:
mlinks.txt file contents:
Uploading ofile1. down-links: stat1=http://10.10.1.5/files/ofile.rar stat2=Incomplete stat3=Upload OK! Uploading gfile1. down-links: stat1=http://10.10.1.5/files/gfile.rar.html stat2=Complete stat3=Upload OK! Uploading afile1. down-links: stat1=http://10.10.1.5/files/afile.rar.html stat2=Incomplete stat3=Upload OK!
And then I use PHP to read the txt file and display it's contents but:
Now I have been messing around with preg_replace and similar commands to get all the other text out and just leave the the file links but no luck yet.
I was hoping that there is an easy way to just find all "http" * "html" links and list them. (* = anything)
Any thoughts... and/or help would be great, thanks!
So far I have managed to get the file open and display the contents:
<?
$myFile = "mlinks.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
$theData = str_replace("\n", "<br />", "$theData");
echo $theData;
?>
This post has been edited by Techno Guy: 02 March 2009 - 01:00 AM

New Topic/Question
Reply




MultiQuote



|