PHP ini and .htaccess problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bill_Gates
    Junior Member
    • Apr 2005
    • 6

    #1

    PHP ini and .htaccess problem

    Hello,

    I got a problem, my newsletter management script calls for the below in my .htaccess file. I have tried placing it in a PHP.ini file and it doesn't work.??
    Any Idea why?

    php_value include_path .:"/home/--*--/public_html/mngr/"
    php_value magic_quotes_gpc "off"
    php_value track_errors "on"
    php_value display_errors "on"
    php_value allow_call_time_pass_reference "on"
    php_value register_globals "on"

    Basically I am not positive this is the problem but when I try to login
    it doesn't work. Just sits there. Also this script is running in a directory
    and that is where I have placed my .ini file is this right??

    Thanks for anything
  • dammitjanet
    Junior Member
    • Jan 2005
    • 29

    #2
    php.ini != .htaccess

    you need to create a file called .htaccess with the content as specified and place it in the install directory.

    Comment

    • sdjl
      Senior Member
      • Mar 2004
      • 502

      #3
      Originally posted by dammitjanet
      you need to create a file called .htaccess with the content as specified and place it in the install directory.
      Those values won't work in a .htaccess file due to PHPSuExec running on the servers.

      Originally posted by Bill_Gates
      php_value include_path .:"/home/--*--/public_html/mngr/"
      php_value magic_quotes_gpc "off"
      php_value track_errors "on"
      php_value display_errors "on"
      php_value allow_call_time_pass_reference "on"
      php_value register_globals "on"
      Whilst those values will work perfectly well inside a .htaccess file on a host that isn't running PHPSuExec, they won't work inside a php.ini file either. Try these instead inside a php.ini file.

      Code:
      include_path = ".:/home/--*--/public_html/mngr/"
      magic_quotes_gpc = Off
      track_errors = On
      display_errors = On
      allow_call_time_pass_reference = On
      register_globals = On
      Just a note though, using register_globals is a potential security risk for your scripts. Make sure you are processing any form data and data that your users can change correctly.

      David
      -----
      Do you fear the obsolescence of the metanarrative apparatus of legitimation?

      Comment

      • Bill_Gates
        Junior Member
        • Apr 2005
        • 6

        #4
        Thanks Guys I got it working

        I got it working thanks for the advice

        Comment

        Working...