php.ini help

Discussion in 'HTML & Website Design' started by bigbody300, Jan 28, 2008.

  1. #1
    Hi,

    godaddy told me i need a php.ini file in my web root to make the php active.

    can anyone tell me what code i need in the file to make this work. How do i make this file? notepad?

    I know jack about php.ini.. this it to make my tnx.net php code active in my .HTML site. thanks
     
    bigbody300, Jan 28, 2008 IP
  2. jagannath_4all

    jagannath_4all Peon

    Messages:
    395
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    jagannath_4all, Jan 28, 2008 IP
  3. bigbody300

    bigbody300 Well-Known Member

    Messages:
    1,283
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #3
    well what i need is the actual php.ini file

    i dont know what i need to put into it - i just need it to tell php to read html files i think..anyone???
     
    bigbody300, Jan 28, 2008 IP
  4. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #4
    u don't need to do anything with ur php.ini file,

    I run php in html pages in one of my sites that is hosted at godaddy.

    here is what u need to do.


    open ur .htaccess file , u will find it in ur root directory .

    open it and add this line.

    AddHandler x-httpd-php5 .php .html


    u r using php 5 or 4

    there is a difference between php 5 and 4, the above line is for php5

    for php 4

    AddHandler x-httpd-php4 .php .html
     
    angilina, Jan 29, 2008 IP