I need somoene to help me i just install a new mod and is not working and now when i trie to login to the forums im not enable here is what show up Fatal error: Call to undefined function: fprintf() in /home/guru/public_html/forums/Sources/PliggBridge.php on line 55 pm if anyone can help here is the forums www.forums.guruhit.com thanks
fprintf was only introduced in php5 you are probably using a version of php lower than 5 as fprintf isn't contained in an extension but is part of the base php5 build. if( !function_exists( 'fprintf' ) ) { function fprintf( $handle, $format ) { $argstr = null ; if( ( $args = func_num_args( ) ) >= 3 ) { if( is_resource( $handle ) ) { for( $start = 2 ; $start < $args; $start++ ) { $argstr .= '"'.func_get_arg( $start ).'",'; } eval( sprintf( '$data = sprintf("%s", %s );', $format, preg_replace( '~,$~', '', $argstr ) ) ); if( $data ) { return fwrite( $handle, $data ); } } } } } // just a test $handle = fopen('file.txt', 'w+'); if( fprintf( $handle, 'The name of the programmer is %s and he is a %s', 'Joe', 'Male' ) ) { echo file_get_contents( 'file.txt' ); } @fclose( $handle ); PHP: Sticking that inside one of your includes should fix that error, however the chances are if the writers depended on one php5 function they will have depended on more, most of which can be rewritten in php, but some cannot, post and lemme know what happens.