<?php
//set POST variables
$url = 'http://employee.nishtyainfotech.com/fun/employeeMailCron.php';

// open a cURL session
$ch = curl_init();

// set the cURL options
curl_setopt($ch, CURLOPT_URL, $url);      // set the URL
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return the response instead of outputting it
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); // set the connection timeout to 10 seconds
curl_setopt($ch, CURLOPT_TIMEOUT, 60); // set the request timeout to 60 seconds
// add any additional options as needed, such as headers or POST data

// execute the cURL request
$result = curl_exec($ch);

// check for errors
if (curl_errno($ch)) {
    echo 'Error: ' . curl_error($ch);
}

// close the cURL session
curl_close($ch);

// process the result
echo $result;


?>