Using htaccess to change my PHP file extensions.

Discussion in 'Site & Server Administration' started by cj986, Aug 6, 2009.

  1. #1
    Hello,

    I m really new to the whole htaccess concept....

    I want to turn on "allow_call_time_pass_reference" .. I found the code for it aswell which is "php_flag allow_call_time_pass_reference 1". Now my question is that what do i put in htaccess file.

    I just added that line in the file and uploaded it. I got 500 message. I uploaded in ASC11 mode too ... Any thing i need to do ?? Anything i need to write other than php_flag allow_call_time_pass_reference 1 ??

    Thank You,
    Hassan
     
    Last edited: Aug 6, 2009
    cj986, Aug 6, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .htacess files aren't web accessible. You should now just check your script and see if the value has changed.

    Make a new file:

    echo ini_get('allow_call_time_pass_reference');
    PHP:
    It should echo 1 if everything is OK.
     
    premiumscripts, Aug 6, 2009 IP
  3. cj986

    cj986 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    did that and i am keep getting 500 message....
    i m sorry, i mentioned 404 message above... it is 500 message
    "Internal Server Error"

    thanx..
     
    cj986, Aug 6, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You may be running php in cgi mode in which case php_value commands will not work.. Ask your host if you can change those.
     
    premiumscripts, Aug 6, 2009 IP
  5. cj986

    cj986 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I m with godaddy and they referred me to this page ... help.godaddy.com/article/1082?isc=isc_code

    any ideas now ??
     
    cj986, Aug 6, 2009 IP
  6. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No, not really since the question you asked in the title is entirely different from the question you asked in the post itself.
     
    premiumscripts, Aug 6, 2009 IP