Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $link = 'ncrypt_link';
- function curl_request($url, $postdata) {
- // INITIALISE CURL REQUEST
- $ch = curl_init($url);
- // CURL OPTIONS
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- // EXECUTE CURL REQUEST
- $result = curl_exec($ch);
- curl_close($ch);
- return $result;
- }
- // POST DATA
- $postdata = array(
- 'link' => $link
- );
- echo curl_request('http://ncrypt.in/api_status.php', $postdata);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement