PDA

View Full Version : SSI question


kamilchodz
6-25-05, 12:17 PM
hello,
I'm not even sure that this is an SSI, but people have included this typew of statement along with their discussions of it...
anyways if I want to do soemthing such as <?php require_once('navigation.php'); ?> in my pages, but I only want a little peice of that page (a small box for a navigation section), how do I do this? I want a constant navigation bar through my site, but when I attempt to use css and whatnot I am forced to use the entire page. Is there a way I can do a php call like this without using the entire page??

Pig
6-25-05, 12:28 PM
Yes, but it would require programming skill. The simplest route would be to put the portion of the navigation page into a different file and including that.

tmprod
6-25-05, 12:32 PM
yes pig is correct, however you could put some sort of unique identifier before and after and have php strpos the open & close of that unique identifier and substr it. Strings are not the easiest things to work with in php tho. i suggest you do what pig says

kamilchodz
6-25-05, 12:32 PM
I'm not afraid of having to program. I just don't know how to do it, which is why I'm here.
Actually I did have this part in another file and included it, but I could not get my mainbody part to be side-by-side with the navigation column.

Also, can you set a div class's rules on a php call like the one above??

I guess my main concern lies with CSS. Off to another forum!!