.php not compatible with frontpage

Discussion in 'PHP' started by zenite, Apr 12, 2007.

  1. #1
    i tried to make a php contact form on my site, but the included pages (frontpage) didn't appear on the contact.php

    i had to make a pop-up instead, doing away with all the navigations. is there any solution to this? i am going to set up a shopping cart soon, so i am worried the php might not work with frontpage, wasting my money.
     
    zenite, Apr 12, 2007 IP
  2. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    uninstall frontpgage. problem solved :)
     
    briansol, Apr 12, 2007 IP
  3. zenite

    zenite Peon

    Messages:
    240
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    that will mean all my navigation will not work. i need time to learn php so that i need not rely on frontpage, but i need a quick solution for the time being.
     
    zenite, Apr 12, 2007 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    The sooner you get away from FrontPage and learn how to make your own navigation the happier you will be.

    You can use FP to create the html. You can even use most of that html on php pages. You can use the include function of php to include your nav links once you make them.

    You can't use FP to publish any site that uses php scripts, php files, cgi files. It will break them everytime. Get an ftp client, learn how to use it. Make you files in FP if you must and then ftp them to the site. Remove the extensions in your control panel.
     
    Colbyt, Apr 12, 2007 IP
  5. thinkarcade

    thinkarcade Active Member

    Messages:
    457
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    65
    #5
    Yeah Front Page has to be about the worst web design app ever. I would get yourself a copy of Dreamweaver :)
     
    thinkarcade, Apr 12, 2007 IP
  6. zenite

    zenite Peon

    Messages:
    240
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    turns out that php includes is that easy, darn. i thought i had to set up a database and have dynamic generated pages. ok, i gonna use php includes for all my webpages, but i still want the .html extension.

    RemoveHandler .html .htm
    AddType application/x-httpd-php .php .htm .html​

    so if i insert the above code in my .htaccess, i can use the following code:
    <?php include("header.php"); ?>
    HTML:
    in my html pages to display my navigation menu? will it work or i have to rename all my html to .php, which will be a pain with so many pages.

    also, is the .php (navigation menu) like normal html pages? that is, with the html, head, body tag, except in the php syntax of cos. or i can exclude those?
     
    zenite, Apr 12, 2007 IP
  7. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #7

    No you can not include php pages on a server parsed html page.

    Or if you can I have learned something new today.

    You can include other html pages on a server parsed html page using this syntax:

    Most of this site is html server parsed: lexkyweb.com

    The header, menu, and footer are all included files on the html pages.
     
    Colbyt, Apr 13, 2007 IP
  8. thejared

    thejared Peon

    Messages:
    382
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Get rid of Frontpage and if you still want something like it, you can use Dreamweaver 8.
     
    thejared, Apr 13, 2007 IP
  9. zenite

    zenite Peon

    Messages:
    240
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    http://www.desilva.biz/php/phpinhtml.html

    it should be possible to use php in .html files, i seen some sites talking about it. i tried the guide the site above give, but it gave me a 500 error.

    i will try the parsed html solution. still reading on it...sounds harder than php.
     
    zenite, Apr 13, 2007 IP
  10. zenite

    zenite Peon

    Messages:
    240
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    yes, i did it. the code to add to .htaccess:
    AddHandler application/x-httpd-php .html

    this is the html page with php include
    http://www.healthsession.com/testing-no-access.html

    alright, time to start a subdomain to test this whole thing out. had to uninstall frontpage too...troublesome, but well worth it. i see frontpage out of my life already :)
     
    zenite, Apr 13, 2007 IP
  11. zenite

    zenite Peon

    Messages:
    240
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    hey, need some help here. the php includes is not as good as frontpage. when i use the same .php in a 2nd level directory, the links are not working, since i use relative locations.

    example:
    in health.html, the links point to hello.html, which works.
    the same .php in example/disease.html will have the links point to /example/hello.html, which doesn't works.

    how do i resolve this? place absolute urls, as in like this: http://www.healthsession.com/hello.html

    or is there another alternative? frontpage does this automatically with relative urls, working fine. or do i create separate .php for 2nd level directory, which will be a pain to edit.
     
    zenite, Apr 13, 2007 IP