Jump to content

PHP Navigation file


CLTaylor

Recommended Posts

Thanks for helping. I wasn't sure how much code to put here, so I'm thinking it's easier to look here:

 

http://www.everythingmenopause.com/7dwarves.htm

 

This is the test page I've been using and if you FIND the first php reference, it's right there.

 

Here's the navigation file:

 

http://www.everythingmenopause.com/navigation.php

 

Thanks for helping

Link to comment
https://forums.phpfreaks.com/topic/92482-php-navigation-file/#findComment-473879
Share on other sites

Well, I took your URL and put in index.php and it seems to be including the file correctly. The link about the 7dwarves.htm has the <?php include... ?> code in it, but because it's an .htm page it won't actually process the php code. Rename it to 7dwarves.php and it will work. PHP code is only parsed on pages with the .php extension, unless you change some settings somewhere.

Link to comment
https://forums.phpfreaks.com/topic/92482-php-navigation-file/#findComment-474259
Share on other sites

Thanks for this answer, I will try it.

 

But it does bring up the question, "if I rename all of my .htm files, will I lose all my backlinks etc. coming into this site?"

 

That is a concern because this site has been up for 3 years, so does anyone know how to change "some settings" and what that means?

Link to comment
https://forums.phpfreaks.com/topic/92482-php-navigation-file/#findComment-474591
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.