Jul
26
asked importing A database using phpmyadmin
Mar
23
awarded Scholar
Mar
23
accepted How to convert this wget function to php?
Mar
23
comment How to convert this wget function to php?
if i use this curl_init('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']); and run the script it just never finishes loading, but if i change it to $ch = curl_init(); it runs but i get nothing in response
Mar
23
comment How to convert this wget function to php?
$url = 'sample.sample.com/api';; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "$(cat <".$xml.">)"); // receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo $server_output = curl_exec ($ch); curl_close ($ch);
Mar
23
comment How to convert this wget function to php?
no its not the same i did exaclty like this fucntion i get this response from the server Parsing XML failed: Start tag expected, '<' not found
Mar
23
comment How to convert this wget function to php?
i dont know how to use curl to function like this wget function ... if you know how to make curl work like this it will be great
Mar
23
asked How to convert this wget function to php?