well, it is tab seperated, but that is for the original link_db.txt file.
i really wanted to get into the is_array() condition.
what i wanted to do was this:
link_db.txt
array(
array('/index.php','Home','.'),
array('/index.php','Galleries','Home'),
array('/index.php','Event','.'),
array('/index.php','Time','Event')
);
then in nav.php do
<?php
include 'phpnav.class.php';
$php_nav = new phpNav('link_db.txt');
..... // rest of code
?>
what i ended up doing was:
nav.php
include 'phpnav.class.php';
$links = array(
array('/index.php','Home','.'),
array('/index.php','Galleries','Home'),
array('/index.php','Event','.'),
array('/index.php','Time','Event')
);
$php_nav = new phpNav($links);
this works, but it still would be great to know how to get my data from the link_db.txt
last thing, so you know.
the original link_db.txt was tab-seperated but i noticed in while looking into the class, it could also use arrays instead of a tab-seperated list. So i then preceeded to try to get the array functionality to work, which i apparently have working now.
thanks again for the help.