Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = "bit.ly/1lgjyiI";
- $get_request_url = "api.decoded.cf/?url=$url";
- //init curl
- $ch = curl_init();
- //Set the URL to work with
- curl_setopt($ch, CURLOPT_URL, $get_request_url);
- //Setting CURLOPT_RETURNTRANSFER variable to 1 will force cURL
- //not to print out the results of its query.
- //Instead, it will return the results as a string return value
- //from curl_exec() instead of the usual true/false.
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- //execute the request
- $store = curl_exec($ch);
- curl_close($ch);
- echo '<pre>', $store , '</pre>';
- ?>
Add Comment
Please, Sign In to add comment