I am having trouble with PHP Includes. For some reason they wont work. I've tried different tuts but none seem to work or i just don't get it. Can anyone help me?
they're suppose to be easy.. no? lol
What exactly are you trying to do? To include a file, just rename the page to .php and put this code in it: <?php include("FileToInclude.whatever"); ?>. The file you want to include can have any extension.
im trying to include a menu to my pages... so when I update it, I dont have to edit every page.
OK. here's how to do it:
1) Put this code in the page you want to include the menu in:
(Changing the filename in the parantheses)
2)Put the menu in the same directory as the file it's being included in.
3)See if it works - note that it will have to be run on a PHP-enabled server to work.
4)Post again if it doesn't!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)