get_file_contents () PHP

1 Cevap php

Neden yankıyı charset ile sorun var mı?

$url = "http://ru.wikipedia.org";
$site=file_get_contents($url);
echo $site;

1 Cevap

Dosyanızın başında header('Content-Type: text/html;charset=utf-8'); koyarak deneyin