I tested this script on another server and it worked fine. Do I have to set my php.ini file? And how?
<?php
ini_set('allow_url_fopen', 1);
if (!isset($_GET['url'])) {
exit();
}
echo file_get_contents($_GET['url']);
?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the PHP Manual on
allow_url_fopenOpen the PHP.ini file with an editor and change the setting accordingly. If this on shared hosting and you do not have access to the PHP.ini contact your hosting service and ask them if they could change the setting.