Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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:
    56
  3. Cemtey

    Cemtey Well-Known Member

    Joined:
    Aug 19, 2007
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    56
    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:
    56
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice