formfields.com Forum Index formfields.com
FORMfields Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Call to undefined function: file_get_contents()

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports
View previous topic :: View next topic  
Author Message
formfields



Joined: 01 Aug 2005
Posts: 465

PostPosted: Tue Jun 05, 2007 7:20 pm    Post subject: Call to undefined function: file_get_contents() Reply with quote

This error occurs when you use FORMfields with an early version of PHP 4, < PHP 4.3. To fix this, just paste the following code after the first "<?php" tag in your FORMfields.php file:
Code:

if (!function_exists("file_get_contents")) {
   /**
    * Reads entire file into a string
    * This function is not available in early versions of PHP 4 and it is used by FORMfields, therefore it is implemented in FORMfields.
    * @see file_get_contents
    * @since FORMfields v3.0
    */
   function file_get_contents($filename)
   {
      return implode('', file($filename));
   }
}
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group