I was just wondereing if there is a way to load an external text file into a variable.
I've heard that u can use openfile() to directly echo a file's content onto the page. But that's no good of I want to play around with the file in php.
I've also head that there's a way to read a file using fopen() eg.
For when I just echo "$myFile" it returns "Resource id #2".
//second parameter can content: a=append, r=read, w=write etc.
$myFile = fopen("aFile.txt","r");
//do something over here to load it into a variable
Can anyone help??