Is it possible?

Discussion in 'PHP' started by bamboo85, Aug 15, 2008.

  1. #1
    Is it possible that we use php scrit in html page and the url is .html ?
     
    bamboo85, Aug 15, 2008 IP
  2. entri3

    entri3 Active Member

    Messages:
    286
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    no the server wont proccess the php code only the html sections
     
    entri3, Aug 15, 2008 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    nico_swd, Aug 16, 2008 IP
  4. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    possible with the .htaccess file.
     
    garrettheel, Aug 16, 2008 IP
  5. nice.wallpapers

    nice.wallpapers Active Member

    Messages:
    142
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Hi ,

    It is possible but for that you have to make changes on server in /etc/php.ini and if you don't have root access then you can do it from .htaccess.


    Thanks :)
     
    nice.wallpapers, Aug 17, 2008 IP
  6. guzz

    guzz Guest

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    
    RemoveHandler .html .htm
    AddType application/x-httpd-php .php .htm .html
    
    Code (markup):
    code for .htaccess
     
    guzz, Aug 17, 2008 IP
  7. Jezz

    Jezz Active Member

    Messages:
    208
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Sounds like a security Nightmare :eek:
     
    Jezz, Aug 17, 2008 IP