erison 63 Denunciar post Postado Outubro 2, 2012 não esta dando certo $cURL = curl_init(); curl_setopt($cURL,CURLOPT_URL,'pasta/pag.php'); curl_setopt($cURL,CURLOPT_RETURNTRANSFER,true); curl_setopt($cURL,CURLOPT_POST,true); curl_setopt($cURL,CURLOPT_POSTFIELDS,array('chave'=>'chave')); $r = curl_exec($cURL); curl_close($cURL); echo $r; Compartilhar este post Link para o post Compartilhar em outros sites
DevMulti 4 Denunciar post Postado Outubro 2, 2012 Tente colocar URL completa na página que você quer acessar: curl_setopt($cURL,CURLOPT_URL,'http://localhost/pasta/pag.php'); não esta dando certo $cURL = curl_init(); curl_setopt($cURL,CURLOPT_URL,'pasta/pag.php'); curl_setopt($cURL,CURLOPT_RETURNTRANSFER,true); curl_setopt($cURL,CURLOPT_POST,true); curl_setopt($cURL,CURLOPT_POSTFIELDS,array('chave'=>'chave')); $r = curl_exec($cURL); curl_close($cURL); echo $r; Compartilhar este post Link para o post Compartilhar em outros sites
erison 63 Denunciar post Postado Outubro 2, 2012 Tente colocar URL completa na página que você quer acessar: curl_setopt($cURL,CURLOPT_URL,'http://localhost/pasta/pag.php'); não deu certo, e acho q isso ea famosa gambiarra. mesma coisa que eu colocar <img src="http://www.site.com.br/pasta/imagem.jpg" /> acho q deve ter uma maneira que pegue pelo path Compartilhar este post Link para o post Compartilhar em outros sites
Vinicius Ianni 189 Denunciar post Postado Outubro 2, 2012 Você tem o pacote curl instalado ? Verifique isso usando o phpinfo(); Compartilhar este post Link para o post Compartilhar em outros sites
erison 63 Denunciar post Postado Outubro 2, 2012 Você tem o pacote curl instalado ? Verifique isso usando o phpinfo(); Tenho sim Compartilhar este post Link para o post Compartilhar em outros sites