Yes, particully your version works, but only with manual changing of lines.
I have different var to send to this script (like page=’1’, page=’2’ and so on)
And it needs not to show the results, but start the page, from chosen line.
<?php
if (!isset($page)) $page=0;
$data=$modx->getChunk("config");
$max=count($data);
if ($page >$max) $page=0;
if (ereg("[[:alpha:]]",$page)) $page=0;
echo "";
include("$data");
echo "";
?>
i think it needs smth like $data=($data[$page]); to get necessary page from line.. comments? )) (i’m really noob in php ;-))