PHP.ini file - need help!

Discussion in 'PHP' started by bigbody300, Jan 28, 2008.

  1. #1
    I am having a problem with PHP..on my Linux server with godaddy.

    i added some php code to my page which shows ads (tnx.net code).. on www.criminalappealattorneys.com

    but i got the error it was not installed properly. So i was told i needed the .htaccess file, so this is what they told me to make and put in the root: AddType application/x-httpd-php .php .htm .html

    Did that....

    Now i get the error you see on the site (tries to download a file), godaddy told me I need a PHP.ini file in the root. BUT WHAT AM I SUPPOSE to put in this file to make this site work?? im so confused.. can you help me out with this php.ini file?
     
    bigbody300, Jan 28, 2008 IP
  2. bigbody300

    bigbody300 Well-Known Member

    Messages:
    1,283
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #2
    i thought this would have been an easy one for you guys to help me with??
     
    bigbody300, Jan 29, 2008 IP
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    Do you have root access?
     
    Kaizoku, Jan 30, 2008 IP
  4. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #4

    the code u put in .htaccess is not correct use this if u r using php5

    AddHandler x-httpd-php5 .php .html

    and this if u r using php4

    AddHandler x-httpd-php4 .php .html


    I am also using php in html pages at godaddy, add this line and ur problem will be solved
     
    angilina, Jan 30, 2008 IP
  5. bigbody300

    bigbody300 Well-Known Member

    Messages:
    1,283
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #5
    i will try it thanks!
     
    bigbody300, Jan 30, 2008 IP
  6. bigbody300

    bigbody300 Well-Known Member

    Messages:
    1,283
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #6
    http://www.criminalappealattorneys.com/

    tried it and the pages loads - but you can see on the lower left sidebar - the error message im getting..ANYONE!! If this is solved i will give a REP!

    This is TNX.net code i am adding to the site.
     
    bigbody300, Jan 30, 2008 IP
  7. sharqi

    sharqi Guest

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Would need to see the code that does the check to be able to tell you why this error is being generated.
     
    sharqi, Jan 30, 2008 IP
  8. bigbody300

    bigbody300 Well-Known Member

    Messages:
    1,283
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    130
    #8
    my htaccess has in it ONLY THIS: AddHandler x-httpd-php4 .php .html
     
    bigbody300, Jan 30, 2008 IP
  9. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #9
    PHP4:
    
    <FilesMatch .html>
    SetHandler application/x-httpd-php4
    </FilesMatch>
    
    Code (markup):
    PHP5:
    
    <FilesMatch .html>
    SetHandler application/x-httpd-php5
    </FilesMatch>
    
    Code (markup):
     
    InFloW, Jan 30, 2008 IP