Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $foldername = 'your_foldername';
- $links = array(
- 'your_link_1',
- 'your_link_2'
- );
- 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(
- 'foldername' => $foldername,
- 'links' => implode("\n", $links)
- );
- $curl_result = curl_request('http://ncrypt.in/api.php', $postdata);
- list($folder, $status) = explode("\n", $curl_result);
- echo "Folderlink: ".$folder."<br />\n";
- echo "Statuslink: ".$status."<br />\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement