FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: Dan on June 28, 2006, 03:36:12 PM

Title: file_put_contents() undefined!
Post by: Dan on June 28, 2006, 03:36:12 PM
I get this error:

"Fatal error: Call to undefined function: file_put_contents()"

but yesterday before the upgrade my site was working fine!
Title: Re: file_put_contents() undefined!
Post by: Dan on June 28, 2006, 03:53:49 PM
I temporarily solved it by writing my own:
function file_put_contents($file, $contents)
{
$f = fopen($file, 'w');
fwrite($f, $contents);
fclose($f);
}

but it would still be nice to have this back...
Title: Re: file_put_contents() undefined!
Post by: dest on June 29, 2006, 12:13:16 AM
does this mean a downgrade to php4?