TheTechChik Posted May 4, 2006 Share Posted May 4, 2006 I just installed a php poll script and initially had an error. By browsing forums I found that I needed to rename the page from index.html to index.php and that worked.My question is... Should I change any of the rest of the page code since it still has <html> above the <head>?The page also contains JavaScript, do I need to do anything different with that?Lastly, I put the poll on my main index but left all of the other pages as .html. Should I change them too for consistency? Quote Link to comment https://forums.phpfreaks.com/topic/9022-changing-html-to-php/ Share on other sites More sharing options...
Guest askjames01 Posted May 4, 2006 Share Posted May 4, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I just installed a php poll script and initially had an error. By browsing forums I found that I needed to rename the page from index.html to index.php and that worked.[/quote]What was the error?i think you make the situation worse...you should not change them.jsut leave them untouch.[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]My question is... Should I change any of the rest of the page code since it still has <html> above the <head>?[/quote]no not necessary just re-reinstall the entire script again, then post the error here.so that we can help you fix that error.ARe you sure with what you are doing?are you a newbie?you must not touch them unless you know what you are doing. Quote Link to comment https://forums.phpfreaks.com/topic/9022-changing-html-to-php/#findComment-33187 Share on other sites More sharing options...
Prismatic Posted May 4, 2006 Share Posted May 4, 2006 [!--quoteo(post=371136:date=May 3 2006, 10:36 PM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ May 3 2006, 10:36 PM) [snapback]371136[/snapback][/div][div class=\'quotemain\'][!--quotec--]What was the error?i think you make the situation worse...you should not change them.jsut leave them untouch.no not necessary just re-reinstall the entire script again, then post the error here.so that we can help you fix that error.ARe you sure with what you are doing?are you a newbie?you must not touch them unless you know what you are doing.[/quote]Whoa now, askjames01, it just sounds like he was trying to incorporate a poll script into his HTML page, which ment he had to rename it to .php for the parser to see it, absolutely nothing wrong with doing that.TheTechChik, It's ok to have html in a php file, the php parser will only process code it sees between the php tags (<?php ... ?>). Unless you plan to have this poll on all of your pages you can leave them alone :) Quote Link to comment https://forums.phpfreaks.com/topic/9022-changing-html-to-php/#findComment-33216 Share on other sites More sharing options...
TheTechChik Posted May 5, 2006 Author Share Posted May 5, 2006 Thanks Prismatic, that's what I thought.Mandy[!--quoteo(post=371165:date=May 4 2006, 01:22 AM:name=Prismatic)--][div class=\'quotetop\']QUOTE(Prismatic @ May 4 2006, 01:22 AM) [snapback]371165[/snapback][/div][div class=\'quotemain\'][!--quotec--]Whoa now, askjames01, it just sounds like he was trying to incorporate a poll script into his HTML page, which ment he had to rename it to .php for the parser to see it, absolutely nothing wrong with doing that.TheTechChik, It's ok to have html in a php file, the php parser will only process code it sees between the php tags (<?php ... ?>). Unless you plan to have this poll on all of your pages you can leave them alone :)[/quote] Quote Link to comment https://forums.phpfreaks.com/topic/9022-changing-html-to-php/#findComment-33460 Share on other sites More sharing options...
.josh Posted May 5, 2006 Share Posted May 5, 2006 [!--quoteo(post=371136:date=May 3 2006, 10:36 PM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ May 3 2006, 10:36 PM) [snapback]371136[/snapback][/div][div class=\'quotemain\'][!--quotec--]What was the error?i think you make the situation worse...you should not change them.jsut leave them untouch.no not necessary just re-reinstall the entire script again, then post the error here.so that we can help you fix that error.ARe you sure with what you are doing?are you a newbie?you must not touch them unless you know what you are doing.[/quote]LoL are you serious? Quote Link to comment https://forums.phpfreaks.com/topic/9022-changing-html-to-php/#findComment-33471 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.