News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

file_put_contents() undefined!

Started by Dan, June 28, 2006, 03:36:12 PM

Previous topic - Next topic

Dan

I get this error:

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

but yesterday before the upgrade my site was working fine!

Dan

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...

dest

does this mean a downgrade to php4?
meh :P