$handle = fopen("http://adres.com/duyuru.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false)
{
echo $line . "</br>";
}
}
fclose($handle);
yukaridaki kod ile txtdeki satirlari tek tek okur ve ekrana satir satir yazabilirsiniz.
Warning: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in
Warning: fopen(
https://www.xxx.com/duyuru.txt): failed to open stream: Invalid argument in lunox.php on line 87
Warning: fclose() expects parameter 1 to be resource, boolean given in lunox.php on line 94
bu koddan başka kod yok.