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.

PHP update, now include "uri" doesn't work

Discussion in 'General Discussion' started by GoWilkes, Jan 5, 2010.

  1. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I just completed an Apache and PHP update a few days ago, updating PHP to v. 5.2.11. When I built Apache, I included ZendOptimizer, eAccelerator, and SOAP.

    Now, all of my "include" commands in PHP that were using a URI are broken. Like this:

    @include "http://www.mydomain.com/header.php";

    They were including a file on the same domain, I had just built them this way because they were being used from dynamic links.

    Is there a reason that 5.2.11 no longer recognizes this? It appears to be valid on php.net. Or is there a conflict with the Apache / PHP configuration?

    TIA,

    Jason
     
  2. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Make sure you have both of these options turned on in the php.ini file:

    allow_url_fopen = On
    allow_url_include = On

    I believe one of them is turned off by default in the php.ini file and the other one is missing, so you need to add it.
     
  3. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    THANK YOU! Adding "allow_url_include = On" did the trick. Oddly, this line wasn't in my original php.ini, either, so I don't know how we were supposed to have known about it.

    Now if I can just get Urchin to start updating, I'll be in as good of shape as I was in last week at this time! LOL
     
Loading...

Share This Page