Menu
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 [i]openfile()
I’ve also head that there’s a way to read a file using [i]fopen()
[code]
//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
For when I just echo “$myFile” it returns “Resource id #2”.
Can anyone help??