Hi,
I have a problem:
I want to read the content of the file
into a variable, then store it into an array..but I lose the data once the while out of the while loop..here is the example:
class xyz {
var $store = Array();
function readF() {
$fp = fopen($path, "r");
while (feof) {
$temp = gets($fp, 100);
echo $temp // --> shows the data;
}
fclose($fp);
echo $temp // --> nothing in variabl!
$this->store[0] = $temp;
}
}
// help!!!!!!!!!!!!! 🙂