Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <form action="upload.php" method="post">
- URL File: <input type="text" name="file_url"><br>
- Nama Baru: <input type="text" name="new_name"><br>
- <input type="submit" value="Upload" name="submit">
- </form>
- <?php
- // Memeriksa apakah file_get_contents aktif
- if (ini_get('allow_url_fopen')) {
- echo 'file_get_contents aktif';
- } else {
- echo 'file_get_contents nonaktif';
- }
- echo '<br>';
- // Memeriksa apakah cURL aktif
- if (function_exists('curl_version')) {
- echo 'cURL aktif';
- } else {
- echo 'cURL nonaktif';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement