$file: "; $data = file_get_contents("news/$file"); //read the file $data = str_replace("http://", "https://", $data); //force https images and links $convert = explode("\n", $data); //create array separate by new line for ($i=0;$i'; //write value by index if ($i == 0){ echo ""; } if ($i == $newscollapsedlines) { echo ''; echo ''; echo '
show all text of this entry
'; echo '
permalink
'; echo '
'; } else { echo '
permalink
'; echo '
'; } echo "


"; echo "

"; } } echo "
"; closedir($handle); } ?>