Use .html(or whetever) to process php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Use .html(or whetever) to process php

    Add to ur htaccess

    AddHandler application/x-httpd-php .html
    AddHandler application/x-httpd-php .htm

    to use different file type, change .html to whatever eg .lol, .wap, .fcker

    when u create files wit .html they can be processed as php. Easy.

    #2
    naff post ---- Dont read this lol
    Last edited by something else; 30.07.09, 00:10. Reason: krap

    Comment


      #3
      Other way also better on server load.

      PHP Code:
      RewriteEngine on
      RewriteRule 
      ^index.htmindex.php
      RewriteRule 
      ^login.htmlogin.php
      RewriteRule 
      ^members.htmmembers.php
      RewriteRule 
      ^404.htm404.php
      RewriteRule 
      ^style.htm$ /style/style.c
      RewriteRule 
      ^browser.htmbrowser.php 
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        What subzero has written is much better and sensible to follow, the .htaccess by mobilegigs may create problems on different host, for me that .htaccess doesnt work as it exposes my php coding.
        tinyurl.com/earnbymobile
        Easy earning for Indians
        ---------------------
        Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android
        goo.gl/6vub3

        Comment


          #5
          well i use paid host, do u? / @something else, no it doesnt. It just allows d extension to be run by d php engine. E.g if i change a files name 4rm file.php to file.mgml then use the addhandler, when u visit d file.mgml, it'll show d same way! I already used dat subzero method 4 a CSRF b4.

          Comment


            #6
            lol i didnt read it properly lol thought i edited my post or deleted it lol
            forget my previous post cos i wasnt looking at yours properly :P

            Comment


              #7
              Originally posted by mobileGIGS View Post
              Add to ur htaccess

              AddHandler application/x-httpd-php .html
              AddHandler application/x-httpd-php .htm

              to use different file type, change .html to whatever eg .lol, .wap, .fcker

              when u create files wit .html they can be processed as php. Easy.
              or if u want 2 uninclude extensions but will run in php.,for example index.php..u want to remove .php extension from it and will still run in php..Then rename it from index.php to index..Put this in ur htaccess..

              <Files index>
              ForceType application/x-httpd-php
              </Files>
              My Blog: http://jhommark.blogspot.com
              My Facebook: http://www.facebook.com/jhommark
              My Official Site: http://www.undergroundweb.tk
              My Community Site: http://undergroundwap.xtreemhost.com

              Comment

              Working...
              X