PHP Code:
function file_get_contents($file)
{
$file = file($file);
return !$file ? false : implode('', $file);
}
$hostdata = file_get_contents("http.conf");
$datasplit= split("\n", $hostdata);
I am trying to read the data froim a file and the example presented below is a line in the file that is not working bacially when ever i try to get aline that has <> in it, it doesnt work
I am usig the function listed to get the data from a file however when ever the function reaches variable that has < or > it skipps over the data with in those two backets. so let say i have
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
it will output
# See for detailed information about
and if i have
# See <URL: http://httpd.apache.org/docs-2.0/ for detailed information about
it will output
# See
As you notice it seem like when ever anything is within the brackers <> it totally cuts it out of the string.
Please i am asking if someone can give me a suggestion of how to fix this problem thank you very much.
Last edited by rcubes85; 05-28-2005 at 03:25 AM..
|