I deduce the information from the file as a whole, but how can I output a variable from the file?
require ('data/site_blok.php'); $url = $sym_link . 'data/site_blok.php'; function contact_details($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $data = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return ($httpcode>=200 && $httpcode<300) ? $data : false; } echo contact_details($url) ; file
<? $cachen = "2"; $site_name = "Иван-чай"; $slogan = "полезные свойства, противопоказания"; $adm_name = "admin"; ?>