Somting realy strange with this php

OK, i just cant get this to work (probably because i don’t know PHP)

i used the exact same script and fla for this guestbook…
it works when it’son this server but not on [URL=http://www.frameset.se/indexfla.htm]this one… the thing of it is… they are both located att B-One.net!?

here is the PHP versions

first one (trestriamusic) has PHP 4.2.2
and the second one (frameset) has PHP 4.3.4

and here is the PHP

<?
if (!isset($name) || !isset($input) || empty($name) || empty($input)) {
print "&result=Fail";
print "&errorMsg=" .urlencode("Come on man, u gotta enter a name and a message, atleast!");
exit;
}

$email = strtolower($email);

addentry($name, $email, $webb, $input);

function addentry($name, $email, $webb, $input) {

$posted = strftime("%d.%m.%y %R");

$input = stripslashes($input);

$file = fopen('historia.txt', 'a+');

if (!$file) {
print "&result=Fail";
print "&errorMsg=" . urlencode("Ehr, k... somthingsnotworkingproporly... please try later");
exit;
}
 
fputs($file, "<font color=\"#333333\">name:</font> $name
<font color=\"#333333\">email:</font><font color=\"#000000\"><A href=\"mailto:$email\"> $email</A></font><br>
<font color=\"#333333\">website:</font><font color=\"#000000\"><A href=\"http://$webb\"target=\"_blank\"> $webb</A></font><br>
<font color=\"#333333\">Date</font> $posted
<font color=\"#333333\">Punshed these keys...</font>
 $input

");
fputs($file, ":e:");
fclose($file);
}
print "&result=okay";
exit;
?>

If you tried the guestbooks… you’ll notice that the error is in the first line @ frameset.se… but that EXACT SAME line works on trestriamusic?!

the variables are all set in the fla.

Can anyone explaine this to make?!? Been trying for a vouple of days now, and theer (B-One.net) customer support realy sucks :(!