file_get_contents is blocked?

novogami

Member
Messages
30
Reaction score
0
Points
6
Hello!
Starting today, all scripts using file_get_contents have stopped working properly. What is happening? Have you blocked this function for free hosting?
 

ctyrd

Active Member
Messages
920
Reaction score
79
Points
28
Have you blocked this function for free hosting?
Create file name file_get.php, and add the code below.
Code:
        <ul>
          <li><?php echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled';?></li>
          <li><?php echo 'file_get_contents: ', file_get_contents(__FILE__) ? 'Enabled' : 'Disabled';?></li>
          <li><?php echo 'file_get_contents can connect to other websites: ', ini_get('allow_url_fopen') ? "Enabled" : "Disabled";?></li>
        </ul>


phpinfo file

Code:
<?php phpinfo();?>
 
Last edited:
Top