Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = "http://localhost/workspace/application/files/origin/oitprintteste.php";
- $content = http_build_query($data);
- $context = stream_context_create(array(
- 'http' => array(
- 'method' => 'POST',
- 'header' => 'Content-Type: application/x-www-form-urlencoded',
- 'content' => $content,
- )
- ));
- $teste = file_get_contents($url,true,$context);
- $url = "http://localhost/workspace/application/files/origin/oitprintteste.php";
- $content = http_build_query($data);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $teste = curl_exec($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement