How do I convert a PHP site into HTML?

Discussion in 'HTML & Website Design' started by Ozzy, Jun 25, 2007.

  1. #1
    Is there any software available to convert a website from php to HTML? Is it a simple task?

    Thanks,

    Ozzy.:)
     
    Ozzy, Jun 25, 2007 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    You may not be able to code all the functionailty which is coded in PHP (e.g. database)
    You have to change them manually.
     
    it career, Jun 25, 2007 IP
  3. Leox Adir

    Leox Adir Guest

    Messages:
    237
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just save the file as .HTML instead of .PHP :)
    But the php codes can't be used in a HTML document.
     
    Leox Adir, Jun 25, 2007 IP
  4. Mooseman

    Mooseman Peon

    Messages:
    453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Why do you want to do that? Sounds pretty stupid
     
    Mooseman, Jun 25, 2007 IP
  5. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #5
    Its not possible to do it for bigger websites but if it is a small one, the best way is to view each page of the website, then saving the page source code into an html file.
     
    nwk, Jun 25, 2007 IP
  6. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #6
    Maybe you want make friendly URL ? in place of viewtopic.php?n=201 topic203.html ?
    Hmm search in G for url rewritting otherwise if you want to just save .php as .html upload your site and see in the source then save it as .html ? :D
     
    SEOdir.net, Jun 25, 2007 IP
  7. teddyruxpin2000

    teddyruxpin2000 Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah, it sounds like you mean you want to change the page extensions from .php to .htm or .html.

    You can do this with Apache's mod rewrite functionality (there are plenty of tutorials online to help you with this--not too difficult at all).

    You can make your pages end in .monkeybutt if you wanted to.
     
    teddyruxpin2000, Jun 26, 2007 IP
  8. Ozzy

    Ozzy Active Member

    Messages:
    286
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Thanks to all the above guys for answering my thread and a special hej hej to Mooseman, he sounds like my old history teacher.

    Cheers,
    Ozzy
     
    Ozzy, Jun 30, 2007 IP
  9. Aligit

    Aligit Peon

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    hmm ok, php to html.... why? :p otherthan for pretty urls
     
    Aligit, Jun 30, 2007 IP