Log in

View Full Version : Php Menu - Help Required



cymru78
04-29-2007, 07:21 PM
Hi,
I am a newbie to these forums.

I am doing a slight redesign of a website and this involves a change of menu.
I am going from a ssi menu to a menu which seems to mean i have to change my page extensions from .shtml to .php

As most of you will probably know, it is quite easy (when you know!) to arrange for a ssi menu to come up automatically on each website page.

The question is, how do i do this for a .php website?

To see what menu i am currently using, please see www.rhylfc.co.uk
To see what menu i am going to use, please see http://www.rhylfc.co.uk/new_site_test/index2.php

Please try to make it as simple to understand for me - i am completely new to php and i have tried and tested various ways myself but i am yet to crack how to solve my problem.

boxxertrumps
04-29-2007, 07:25 PM
<?php include("path/file.php"); ?>
That includes and excecutes the content in the current php file.

cymru78
04-29-2007, 08:40 PM
Thank you.

I must apologise as i have just realised that i have made a cock up!

I got confused between the menu and the polls which will be on my site.

The polls require me to save the homepage as php.

The menu has nothing to do with php.
The menu i will be using is
http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

so my question is actually how do i get that menu to appear on each page as if it were ssi?
the menu can and probably will change slightly throughout the next football season so obviously i don't want to have to change it on every page.

Please feel free to move this thread to the correct place if needed.

cymru78
04-29-2007, 10:34 PM
I just want to say that I am a little closer to what i want to do know.

I still have a small problem with what will be my new home page, but i will open up a new thread for that.