Jump to content

kingston_123

New Members
  • Posts

    6
  • Joined

  • Last visited

kingston_123's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I need to get original URL which link works in any remote url upload with this php code. I am not bypassing any thing here with this php codes.
  2. if I have this url: https://p-ams2.pcloud.com/cfZef5XTZVizxYkZNTGjZZsikL67Z2ZZKYRZZrYP6e7ZgVZQZTVZ4XZN7Zw7ZfVZBkZgXZLVZokZJ7ZxZ1XZ6MJPDKvi9cQXwzvKARfMHfHsN5WX/SH-LMP-SS-JUN15.zip Here is my codes: <?php $name="19875379"; $url = "https://p-ams2.pcloud.com/cfZef5XTZVizxYkZNTGjZZsikL67Z2ZZKYRZZrYP6e7ZgVZQZTVZ4XZN7Zw7ZfVZBkZgXZLVZokZJ7ZxZ1XZ6MJPDKvi9cQXwzvKARfMHfHsN5WX/SH-LMP-SS-JUN15.zip".$name; $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($ch, CURLOPT_HEADER, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $header = curl_exec($ch); $redir = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); //print_r($header); $x = preg_match("/<script>location.href=(.|\n)*?<\/script>/", $header, $matches); $script = $matches[0]; $redirect = str_replace("<script>location.href='", "", $script); $redirect = "http://www.pcloud.com" . str_replace("';</script>", "", $redirect); echo $redirect; ?> & output is: Notice: Undefined offset: 0 in C:\xampp\htdocs\58.php on line 18 http://www.pcloud.com What wrong am I doing?
  3. I am new & i already install XAMPP. but how to insert this codes & run it ? I have PC & INTERNET. I don't have servers.
  4. My friend gave me this codes, before using this codes what software(s) should I install on my PC & where to paste this codes to get final result: <?php $url = "http://www.google.co.in"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return in string curl_setopt($ch, CURLOPT_URL, $url); $varx = curl_exec($ch); echo htmlentities($varx); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.