Re: Import SMF to bbPress
This code is written for PHP5. It works perfectly.
PHP4 users will need an extra piece of code, however, because the function file_put_contents does not come with PHP4.
So copy this piece of code and paste it on the bottom of the php file, but before the ?> tag
if (!function_exists('file_put_contents')) {
function file_put_contents($file, $contents = '', $method = 'a+') {
$file_handle = fopen($file, $method);
fwrite($file_handle, $contents);
fclose($file_handle);
return true;
}
}