# Somting realy strange with this php

**URL:** <https://forum.kirupa.com/t/somting-realy-strange-with-this-php/51091>\
**Category:** Uncategorized\
**Created:** [May 9, 2004, 8:47pm UTC](https://forum.kirupa.com/t/somting-realy-strange-with-this-php/51091 "2004-05-09T20:47:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azazel](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Azazel](https://forum.kirupa.com/u/Azazel)\
**Post date:** [May 9, 2004, 8:47pm UTC](https://forum.kirupa.com/t/somting-realy-strange-with-this-php/51091/1 "2004-05-09T20:47:55Z")

</div>

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’s[on this server but not on [URL=http://www.frameset.se/indexfla.htm]this one](http://www.trestriamusic.se/framesetguestbook/indexfla.htm)… the thing of it is… they are both located att [B-One.net](http://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

```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](http://B-One.net)) customer support realy sucks :(!
