View Single Post
Old 11-23-2009, 07:00 PM  
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by Killswitch View Post
file_put_contents() is a php5 function.
Code:
<?php
  if(!function_exists('file_put_contents')) {
    function file_put_contents($filename, $data, $file_append = false) {
      $fp = fopen($filename, (!$file_append ? 'w+' : 'a+'));
        if(!$fp) {
          trigger_error('file_put_contents cannot write in file.', E_USER_ERROR);
          return;
        }
      fputs($fp, $data);
      fclose($fp);
    }
  }
?>
That should fix your problem. I highly suggest upgrading PHP to 5.x
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote