Rather easy to do!
<?php
// this is index.php with list of all logfiles
?>
Please click your logfile to read.<br>
Thank you<br><br>
<a href="showlog.php?open=logfile001.php">logfile 001</a><br>
<a href="showlog.php?open=logfile002.php">logfile 002</a><br>
<a href="showlog.php?open=logfile003.php">logfile 003</a><br>
<a href="showlog.php?open=logfile004.php">logfile 004</a><br>
<a href="showlog.php?open=logfile005.php">logfile 005</a><br>
<a href="showlog.php?open=logfile006.php">logfile 006</a><br>
<!-- and so on until last logfile999.php -->
<a href="showlog.php?open=logfile999.php">logfile 999</a><br>
<?php
// this is showlog.php
// put this logfile 'logfileXXX.php' into variable '$logcontents'
$file = $_GET[ 'open' ];
$logcontents = file_get_contents( $file );
?>
// display
<a href="index.php">Back to index</a><br><br>
<?php
echo $logcontents;
?>
Neednt be more complicated than this.
A piece of cake
for
/halojoy 2005 sweden
🆒
//////////////////////////////////////////////////////////
Notice one thing more about
file_get_contents() function, http://php.net/file_get_contents
It will work with links, too.!!!
URL = http://www.google.com/
<?php
// different ways to get stuff, from your folders or WebSites
$stuff1 = file_get_contents( "./archive/arkiv01.txt" );
$stuff2 = file_get_contents( "http://www.google.com/index.html" );
// display ////////////////////////////////////////
echo "arkiv01.txt<br>
$stuff1
<br><br>";
echo "Google index.html<br>
$stuff2
<br><br>";
?>
Not bad, for a PHP function!!!
🆒