Norman Posted November 11, 2009 Report Share Posted November 11, 2009 (edited) Using require_once('http://site.com/includes/header.php'); I get an error: Warning: require_once() [function.require-once]: URL file-access is disabled in the server configurationThen, this mean that allow_url_include in disabled, right? Ok, let's say I can't enable this one from my PHP.ini. What can I do to solve this problem?Note: I will have to inlcude files only from the same website, not from another external website. Edited November 11, 2009 by Norman Link to comment Share on other sites More sharing options...
Norman Posted November 11, 2009 Author Report Share Posted November 11, 2009 Ops, solved. require_once($_SERVER['DOCUMENT_ROOT'].'/includes/header.php'); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now