lady1dc Posted January 18, 2008 Share Posted January 18, 2008 I thought I was doing well when I took the time to get a couple of books on CSS. I thought, "oh, I don't even want to know what all that php sql business is." I'm just barely starting to see, however, that php might make my life a lot easier. I promise to get a book and to go through all the tutorials to properly learn it. Meanwhile, however, I'm about to add a major section to my site this weekend and it would be easier if I understood a couple of things. Please bear with me as I ask the most basic of questions. I plan to use php to put the same navigation menu on all of my pages. I have found a code in a forum that will allow me to do this. I have confirmed that my provider allows php. I understand that the file containing my menu must be saved as a php file rather than htm. I also understand (correct me if I'm wrong) that all the pages into which the menu will be inserted must also have the php extension. Essentially this means I will be changing all of my file extensions from htm to php. The question is: Will I have to re-link all of my pages? All of my pages, for example, have a link to "home.htm" Would I need to go through and change them all to link to "home.php"? Or, when the php parsing does its thing, does it take care of this for me -- reading all php files as htm? (For some reason I do not remember, I chose to make all my files htm instead of html extensions.) Thanks and I'm sorry for such a silly little question. Quote Link to comment https://forums.phpfreaks.com/topic/86562-very-basic-question-about-htm-files-becoming-php-files/ Share on other sites More sharing options...
p2grace Posted January 18, 2008 Share Posted January 18, 2008 I think the safest way would be to update all your links to .php extensions. Quote Link to comment https://forums.phpfreaks.com/topic/86562-very-basic-question-about-htm-files-becoming-php-files/#findComment-442292 Share on other sites More sharing options...
Nhoj Posted January 18, 2008 Share Posted January 18, 2008 If you are on a VPS or a dedicated server you could have the PHP engine parse .htm files also. Quote Link to comment https://forums.phpfreaks.com/topic/86562-very-basic-question-about-htm-files-becoming-php-files/#findComment-442298 Share on other sites More sharing options...
revraz Posted January 18, 2008 Share Posted January 18, 2008 Change your .htaccess to parse .htm and .html as PHP. Quote Link to comment https://forums.phpfreaks.com/topic/86562-very-basic-question-about-htm-files-becoming-php-files/#findComment-442331 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.