The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to swich PHP register_long_arrays on ?

Discussion in 'General Discussion' started by Cemtey, Dec 25, 2007.

  1. Cemtey

    Cemtey Well-Known Member

    Joined:
    Aug 19, 2007
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    I have register_long_arrays off
    I'd need to turn it on but inside php.ini file I only had
    register_global = Off

    I tried to change
    register_global = On

    and added line right after it
    register_long_arrays = On

    But it still doesn't seem to work.
     
  2. Amit Deshmukh

    Amit Deshmukh Well-Known Member

    Joined:
    Jul 1, 2007
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
  3. Cemtey

    Cemtey Well-Known Member

    Joined:
    Aug 19, 2007
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Wasn't bug, I figured that option isn't made for php 4.x and only should be in php 5.x
    So this case is solved. :)
     
  4. Amit Deshmukh

    Amit Deshmukh Well-Known Member

    Joined:
    Jul 1, 2007
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Its Simple

    If you have PHP 4 and 5 both on your server :-

    you need to add below line in your .htaccess file :-

    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

    Let us know if you need further assistance.

    Regards,
    Amit
    Back in Action
     
Loading...

Share This Page