Jump to content

Archived

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

TheTechChik

Changing .html to .php

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest askjames01
[!--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.

Share this post


Link to post
Share on other sites
[!--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 :)

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
[!--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?

Share this post


Link to post
Share on other sites

×

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.