Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default php include broken?

    Suddenly a client is having php include problems since last night.

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/user/public_html/inc/panel-right.php on line 1

    Warning: include(http://www.domain.net/inc/projects.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/user/public_html/inc/panel-right.php on line 1

    Warning: include() [function.include]: Failed opening 'http://www.domain.net/inc/projects.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/inc/panel-right.php on line 1


    Same type of errors on 3 domains. I simply upgraded to PHP 5.2.0 last night from 5.1.6, that is all.

    What should I do to rectify this? I am unable to trace the cause.

  2. #2
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    Someone mentioned this:

    You need to enable URL inclusion. It's covered in the PHP update guide, http://www.php.net/UPDATE_5_2.txt


    However, I do not see any info about this in php.ini

  3. #3
    Member
    Join Date
    Feb 2002
    Location
    Bucuresti
    Posts
    129

    Default

    change in php.ini the line
    allow_url_fopen = On
    with
    allow_url_include = On

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2002
    Posts
    686
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by cosmin View Post
    change in php.ini the line
    allow_url_fopen = On
    with
    allow_url_include = On
    In php 5.2.x this doesnt appear to work

Similar Threads & Tags
Similar threads

  1. PHP or include
    By msh100 in forum Themes and Branding
    Replies: 2
    Last Post: 06-29-2008, 05:32 PM
  2. PHP include scope
    By ScareCrowe in forum New User Questions
    Replies: 2
    Last Post: 06-12-2008, 03:35 PM
  3. php include problem
    By cosmin in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-10-2007, 10:18 PM
  4. php include path
    By KarterJK in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-19-2004, 12:38 PM
  5. CGI/PHP include?
    By andy7t in forum Themes and Branding
    Replies: 1
    Last Post: 03-15-2004, 01:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube