I am very new to php, but i was wondering how i would make a code that would do something like this:
if test.php or anything else print mainpage.dat
if test.php?page=1 print page1.dat
if test.php?page=2 print page2.dat
if test.php?page=3 print page3.dat
and more pages could be added, as it reads the file.