Hi,
I'm using the php 'file' command to extract the details of a PLAIN TEXT file on the server.
No matter what i do, I get "Array" as a result - (foreach doesn't work, as its not an array).
How do I view the line-by-line results of the file i just opened.
How do I change format ??
Heres the code >>
$filetoview=file($filename);
$loop=explode("\n",$filetoview);
echo "<PRE>
<b>X - $filetoview - X </b>
<b>Y - $loop - Y </b>
</PRE>\n";
Both X & Y results are "Array"
I'm using the php 'file' command to extract the details of a PLAIN TEXT file on the server.
No matter what i do, I get "Array" as a result - (foreach doesn't work, as its not an array).
How do I view the line-by-line results of the file i just opened.
How do I change format ??
Heres the code >>
$filetoview=file($filename);
$loop=explode("\n",$filetoview);
echo "<PRE>
<b>X - $filetoview - X </b>
<b>Y - $loop - Y </b>
</PRE>\n";
Both X & Y results are "Array"