Quote:
Originally Posted by rickisme
change C:\samp03z_svr_R1_win32 to your path
PHP код:
<?php
function getcontent($path)
{
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
return file("samp.ban", true);
}
$lines = getcontent("C:\samp03z_svr_R1_win32");
foreach($lines as $line ){
echo $line."<br/>";
}
?>
|
That would only work on the same windows server that the server is on, and also assuming the webhost is running on windows, which a lot don't.
Anyway, you could use a similar method from your last post where you were using an ftp:// link to get the content of the file.