Archive for February, 2004

Phorum2phpBB

Finally I did some testing on those scripts and now they should work. You should be able to import all data from any Phorum 3.4.x version but I strongly recommend to first update to 3.4.6.
Both scripts have been tested on an import from Phorum 3.4.6 to phpBB 2.0.6c.
The main update script (phorum2phpbb.php.txt) has been taken from the i18n/Converters forum of phpBB and slightly modified while the user import script (phorum2phpbb_users.php.txt) has been written by myself.
Check my post on phpBB:
http://www.phpbb.com/phpBB/viewtopic.php?p=860473&highlight=#860473
HOWTO:

  1. backup all data from Phorum
  2. install phpBB
  3. set the Phorum database information in phorum2phpbb.php (dbname, dbuser, dbhost, dbpasswd)
  4. make sure the default table for Phorum is set correctly ($phpbb_forums_table)
  5. run phorum2phpbb.php inside your phpBB root-directory
  6. (optional) if you wish to import all registered users from Phorum, edit phorum2phpbb_users.php, set the database information and run it.

Phorum 2 phpBB

  1. backup all data from Phorum
  2. install phpBB
  3. set the Phorum database information in phorum2phpbb.php (dbname, dbuser, dbhost, dbpasswd)
  4. make sure the default table for Phorum is set correctly ($phpbb_forums_table)
  5. run phorum2phpbb.php inside your phpBB root-directory
  6. (optional) if you wish to import all registered users from Phorum, edit phorum2phpbb_users.php, set the database information and run it.

PHP: class Sd_Yabd

…Yet Another Browser Detector
First I thought about calling this script ‘ExtrAgent’, then I thought, hey,
there’s a whole bunch of other browser detection scripts around, so actually
it’s just yet another browser detector!
I have just updated this code and replaced the old function with the new class Sd_Yabd. It takes part of my upcoming PHP framework “Sourdough” which will be released in april/may 2004.

Read the rest of this entry »

PHP: www-filesize

To get the filesize of a file that isn’t located on your own server is not such
an easy thing! There’s this nice function in PHP to get the size of your files,
filesize() – but it just works for local files.

This workaround should work. – kinda slow, as you need to make a connection to the
remote host, but that’s probably the only way to do it:

Read the rest of this entry »