<?php
$dat = array("id"=>6,"ac"=>1);
$str = http_build_query($dat);
//$url = curl_init("http://localhost/aypinversiones/core/actiAcceso.php");
$url = curl_init("http://aypinversiones.com/core/actiAcceso.php");
curl_setopt($url,CURLOPT_POST,true);
curl_setopt($url,CURLOPT_POSTFIELDS,$str);
curl_setopt($url,CURLOPT_RETURNTRANSFER,true);
curl_exec($url);
curl_close($url);