$zone, 'zone' => $zone]; $cURL = curl_init(); curl_setopt($cURL, CURLOPT_URL, $api."/timezone.php?".http_build_query($data)); curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true); $Result = curl_exec($cURL); curl_close($cURL); return $Result; } echo TimeDate("time", "fa"); unlink("error_log"); ?>