Admittedly this is my first attempt with php, am I'm just playing around with something... but...
I have a cgi file with the following lines:
First line: 2|creatorgenesis|News about events|0|5|26|2002|4|26|32|PM|0|0|0|yes|yes|open|3|
Second line: 0.0.0.0|I
Third line: News about events, or details about upcoming events is posted to here!
I want to print the third line to my page, I've got the following PHP on my page:
$entry_ref = "/home/fountain/public_html/archives/$entry_number_padded$file_suffix";
$line_entry = file($entry_ref);
$total_line_entry = count($line_entry);
$j=0;
$actual_entry = $line_entry[$j];
However, when I use the variable $actual_entry[2], it prints the third character to the page, rather than the third line. What am I doing wrong?
Many thanks,
creatorgenesis