Welcome Guest, Not a member yet? Register   Sign In
Issue with including a file in codeigniter folder from root
#12

[eluser]hartmannr76[/eluser]
Hey, sorry if I got you agitated, just been up for hours trying to figure it out.. Ok, so I tried what you said and it threw me an error that URL-file access is not allowed on the server.. I google searched that problem and it threw me to a website with a couple of suggestions.. lo and behold the answer was this:

<?php

$includeFile = file_get_contents("http://www.YourDomain.com/ci/index.php");

echo $includeFile;
?>

and it worked fine.. the only weird thing with it now is that the header of my feeds is able to be highlighted but the content is not.. it doesnt really matter right now, I just wanted it to work in general, but I got it up and running.. thanks a bunch!


Messages In This Thread
Issue with including a file in codeigniter folder from root - by El Forum - 03-19-2011, 01:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB