Hai folks, i am in urgent need of using file_get_contents() function in my php scrip. but my hosting has disabled it. i am using 1and1 shared hosting. i want allow_url_fopen = On How to do it
Try $file = fopen($file,'r'); while($cont = fread($file,1024536)){ $file_content .= $cont; } fclose($file); PHP: Although that may also be blocked. Or if it's url based try: exec('wget $url'); PHP:
Thanks folks, Good news is 1and1 allows global php configuration overide. i just created a php.ini file using note pad and put the following content. Placed it on the directory where my scrip resides and it workd! allow_url_fopen = on;