Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Posts
    137

    Unanswered: what's the workaround for this problem?

    Hi,

    I am trying to include a memberheader.php. I tried this code:

    include $_SESSION["domain_name"] . 'includes/connect2db.php';

    but got this error:

    Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\xampp\htdocs\xoompage\includes\memberheader.php on line 5

    How can I fix this please?


    Thanks,
    Jassim

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Your code will resolve to something like:
    Code:
    include "http://your_domain.com/includes/connect2db.php";
    Instead of using URLs, use relative paths.
    Code:
    include "/includes/connect2db.php";
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •