Page 1 of 1

[SOLVED] php v 4.2.3 - file_get_contents gives error help!

Posted: Sun Mar 14, 2004 10:18 am
by sh33p1985
does anyone know why when i try to use file_Get_contents("file"); it gives me an error call to undefined function?

Posted: Sun Mar 14, 2004 11:06 am
by sh33p1985
i did that comes up with error:

Warning: Wrong parameter count for join() in c:\phpdev\www\calc.php on line 3

Posted: Sun Mar 14, 2004 11:07 am
by markl999
It should be,

Code: Select all

function file_get_contents($file) { 
    return join("\n", file($file)); 
}

Posted: Sun Mar 14, 2004 11:10 am
by sh33p1985
works, thanks man!:P