FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Is include disbled or something?





polly-gone
I can't gget anything to work with include. It says this is invalid:

Code:

<?php
include("http://atomicdingo.info/menu.php");
?>

Is there something wrong with this?

-Nick Smile Smile Smile
MrBlueSky
Including remote files is indeed disabled (ALLOW_URL_INCLUDE=false) in php.ini. You can only include local files.
polly-gone
It is a local file. This is hosted on Frihost. I am just using http://atomicdingo.info because somepages that will be accessing it include main/products/index.php. I have this hosted in the root. Is there anyway I can access the root?
MrBlueSky
Sure. But you can't use an URL. To include a file from your root, use:

Code:

include("/domains/<yourdomain>.frih.net/somefile.php");
polly-gone
*Smacks self on head* I knew that. Geez! Why do you have to get all up in my business man. Lol

hehe

-Nick Smile Smile Smile
Related topics
Do we support php include and/or SSI?
Aprender a Usar un Include.
php include path
Wonders of the include() in PHP.
PHP include code problem
[php] secure dir prevents include?
php include
.html using header/footer include script?
PHP include()
include() for phpbb = blank?
Require and Include
include
How to Include my site in DIRECTORY???
Help with include --Solved--
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.