Apache experts here? php.ini/htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sam Granger
    Confirmed User
    • Dec 2004
    • 3958

    #1

    Apache experts here? php.ini/htaccess

    Trying to turn on globals_register through htaccess but i'm keep on getting a 500 internal server error.

    Any ideas?

    Damn host doesn't want to turn globals_register on for some security reasons.

    $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
    14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
    Join Fetish Hits now!
    ICQ: 358652230
  • QTbucks_Mark
    Confirmed User
    • Mar 2006
    • 254

    #2
    Originally posted by Sam Granger
    Trying to turn on globals_register through htaccess but i'm keep on getting a 500 internal server error.
    What's in your .htaccess? If there's a typo Apache is likely to give you an 500 internal server error.

    That should do it: php_flag register_globals 1

    If you're using Apache 2.x you might have to put the php_flag inside a <virtual> or <directory> section.


    QTbucks : featuring cherrywinters.com - sweetcarry.com - cutecaroline.com
    [email protected] :: ICQ 26505638

    Comment

    • teksonline
      So Fucking Banned
      • Jan 2005
      • 2904

      #3
      are you running php_suexec? if this is the case, you can not use php_flag

      copy a php.ini file into that dir with the php scripts


      Last edited by teksonline; 05-01-2006, 01:03 PM.

      Comment

      • BigBen
        Confirmed User
        • Nov 2004
        • 2299

        #4
        Originally posted by QTbucks_Mark
        What's in your .htaccess? If there's a typo Apache is likely to give you an 500 internal server error.

        That should do it: php_flag register_globals 1

        If you're using Apache 2.x you might have to put the php_flag inside a <virtual> or <directory> section.
        Nice. I actually just wanted to do this the other day, but didn't have a chance to look it up.

        Your sites look pretty good in your sig, I think I'll try 'em out.

        Comment

        • naitirps
          Confirmed User
          • May 2004
          • 761

          #5
          globals_register is bad if enabled... i'd listen to your host.

          change those vars to $_GET[var] or $_POST[var]... or if lazy, do all $_REQUEST[var] instead.
          Programmer
          ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

          Comment

          Working...