Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    203
    cPanel/Enkompass Access Level

    Root Administrator

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

    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. #2
    ckh
    ckh is offline
    Member
    Join Date
    Dec 2003
    Posts
    319

    Default

    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. #3
    Member
    Join Date
    Sep 2006
    Posts
    203
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

Similar Threads & Tags
Similar threads

  1. API "addforward" function doesn't work
    By lvt in forum cPanel Developers
    Replies: 4
    Last Post: 06-17-2009, 04:08 AM
  2. Replies: 2
    Last Post: 01-27-2009, 05:39 PM
  3. "create view .." doesn't work for mysql
    By gundamz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-16-2007, 10:42 AM
  4. Replies: 8
    Last Post: 02-22-2004, 02:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube