Jump to content

Changing .html to .php


TheTechChik

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?
Link to comment
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.
Link to comment
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 :)
Link to comment
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]
Link to comment
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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.