Need answers to PHP questions on website

Discussion in 'PHP' started by vckc4ever, May 18, 2009.

  1. #1
    Dear fellow forumers,

    This is my first time here.

    I have questions regarding to PHP. All this while, I am using html for my designing of my website. Since I intend to set up membership scripts on my website, it requires PHP codings.

    My questions will be :
    1. Can I combine both html and php into my website links ?
    2. If I switch to PHP, how will it affect the designing of my website, if I use Frontpage ?
    3. Any tips or answers you can advise me on the switch from HTML to PHP ?

    Appreciate any tips you can give.

    Many thanks in advance.

    Cheers !
    Vince
     
    vckc4ever, May 18, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    1. Yes
    2. None
    3. Instead of saving the file in .html save it to .php
     
    bartolay13, May 18, 2009 IP
  3. tmsfactory.com

    tmsfactory.com Banned

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    HTML = a static page with images and text
    PHP = can make your HTML dynamic which means, you can put variables, data and you may get data from your database using mysql

    It will be useful if you will start the basics of php
     
    tmsfactory.com, May 18, 2009 IP
  4. vckc4ever

    vckc4ever Greenhorn

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    Hi Bartolay13,

    Thanks for your reply. These will work based on the existing website that is currently using the HTML tags.

    How about instead of using the existing HTML, the PHP scripts is being used entirely ?

    I have seen the index.php worked well when it was publish on the net. But when I download the idex.php and change it to html, it came out with the raw codes.

    Any tips ?

    Thanks
    Vincent
     
    vckc4ever, May 18, 2009 IP
  5. vckc4ever

    vckc4ever Greenhorn

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    Hi tmsfactory.com,

    thanks for your reply. The problem is I'm so used to HTML based website. If I were to use PHP, it is a new territory for me.

    Moreover, if I install the PHP entirely because of the scripts needed to run the membership site, then all the codings for the links, images and add ons, will be entirely different.

    I know lots of people are already using PHP for a more interactive and "lively" website, to conform to the current web 2.0 requirement..but since I'm a real green fella in this PHP field, I do afraid that I might mess up the codings.

    P/S : I'm currently using HMTL editor, Frontpage for my website. I did downloaded the php file and change to hmtl file in Frontpage to view the codings..They are a bunch of codes..

    Any tips will be appreciated.

    Many thanks.
    Vincent
     
    vckc4ever, May 18, 2009 IP
  6. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #6
    there will be no problems with the html codes...
    ok once you create the code of php, it will now require an engine to run the php differently. its called apache,
    running your page in server with apache will run the php code, this is different than html.

    for more info's try here : http://www.w3schools.com

    it will be complicated if you are going to combine html to php.
     
    bartolay13, May 18, 2009 IP
  7. seoplan

    seoplan Banned

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    1. yes you can.
    2. No effect.
    3. You can insert php into html, or html in php codes.


     
    seoplan, May 18, 2009 IP