How to run PHP from HTML page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xdhirax
    Junior Member
    • Feb 2006
    • 3

    #16
    Help

    Comment

    • -Oz-
      Senior Member
      • Mar 2004
      • 545

      #17
      What line? you quoted twopeople talking about mod rewrite. Google for mod rewrite and there are a crapload of tutorials out there or ask a useful question. And BTW: from midnight till 4am you're prolly not gonna get help, no need to double post.
      Dan Blomberg

      Comment

      • xdhirax
        Junior Member
        • Feb 2006
        • 3

        #18
        What line? This one:
        Code:
        AddHandler application/x-httpd-php .php .html .htm

        Comment

        • AndrewT
          Administrator
          • Mar 2004
          • 3653

          #19
          That line works perfectly with us. We really cannot provide much help with another host.

          Comment

          • -Oz-
            Senior Member
            • Mar 2004
            • 545

            #20
            the only way I can think of to do it with another host is mod rewrite and i'd looking something like this:
            Code:
            Options +FollowSymLinks 
            RewriteEngine On
            RewriteRule (.*).html$ process.php
            That would make it so anything.html would be redirected to process.php and then I would use process.php to display the proper content, an example for articles would be
            http://www.yourdomain.com/articles_g...uys_yahoo.html and then i'd make it so my php script took the part before the first _ and made it the database and then the rest is the title.
            Dan Blomberg

            Comment

            Working...