Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    134

    Default Unable to use function.include in php file

    Hello,

    I am writing following content in one php file.
    =====================================
    <?php
    include("http://yahoo.com");
    ?>
    ==================================

    But it is giving me following error:
    ===================
    Warning: include(): URL file-access is disabled in the server configuration in /home/sponke5/public_html/g0tcms/g0tcms_site_files/test.php on line 2

    Warning: include(http://rediffmail.com): failed to open stream: no suitable wrapper could be found in /home/sponke5/public_html/g0tcms/g0tcms_site_files/test.php on line 2

    Warning: include(): Failed opening 'http://rediffmail.com' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sponke5/public_html/g0tcms/g0tcms_site_files/test.php on line 2
    ============================================

    So please help me what is wrong in this, and how to correct this error.

    Thank You for your replies.

    its_joe

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Your PHP installation does not permit the opening of remote files. This could either be:

    1. PHP was not compiled with support for this; or
    2. It was disabled in the php.ini file.

  3. #3
    Member
    Join Date
    Jun 2004
    Location
    amsterdam
    Posts
    267

    Default

    This is default disabled by php because of security reasons.

  4. #4
    Member
    Join Date
    Feb 2007
    Posts
    134

    Default

    So what I can do to solve . so that don't get the error message and the 3 line php code works fine. ?????


    Thanks for your replies.

    its_joe

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    2

    Default How to solve?

    Quote Originally Posted by its_joe View Post
    So what I can do to solve . so that don't get the error message and the 3 line php code works fine. ?????


    Thanks for your replies.

    its_joe
    You has solved that? If yes, how to solve? I'm with same problem.

Similar Threads & Tags
Similar threads

  1. Replies: 11
    Last Post: 06-02-2010, 03:12 PM
  2. cp includes: possible to include a php file?
    By RSimoes in forum cPanel Developers
    Replies: 5
    Last Post: 11-19-2008, 10:47 AM
  3. Warning: virtual() [function.virtual]: Unable to include 'cgi-bin/in.cgi'
    By its_joe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-10-2008, 10:16 AM
  4. including a php file gives me an error. Not when include() t
    By Domenico in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-27-2002, 05:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube