hi, im trying to get a simple text file into a variable...
ive tried: $get = fopen($file,"r") ;
but it returns "Resource id #1"
how can i do this?
Ben
paste that after your line of code ...
while($data = fgets(1024,$get)){ $var .= $data; }
echo $var; // should contain all file-content
ali
sorry, should be:
while($data = fgets($get,1024)){ $var .= $data; }
echo $var;
wohoo, got that to work 🙂 thanks ali!