Nice catch :-)
I love file_put_contents, but I had forgotten that it was a pure php5 solution.
During my next commit cycle I will implement Kurt's solution, as it will
work just fine.
Thank you,
--Brian Zab
> From: Kaloyan Raev <[EMAIL PROTECTED]>
> I also tried the installer with PHP 4. Unfortunately, it does not work
> due to an error:
>
> Fatal error: Call to undefined function: file_put_contents()
> in /var/www/care2x-php5/setup/_main.php on line 214
>
> From: Kurt Brauchli <[EMAIL PROTECTED]>
> you could put simply this somewhere in an include file
>
> if( !function_exists('file_put_contents') ){
> function file_put_contents($filename, $content){
> $fp = fopen( $filename, "w+" );
> fwrite( $fp, $content );
> fclose($fp);
> }
> }
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Care2002-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/care2002-developers