Annars finns det ett lättare sätt att sköta det hela på:
Kräver iof att användaren har ICQ installerat och att man verkligen orkar skriva meddelandena :P
Kod:
<?
function icq($icq) {
* * * *// Check that $icq really is a number.
* * * *if (!isint($icq))
* * * *{
* * * * * * * *die("Inget ICQ nummer");
* * * *}
* * * *// Output correct headers so that ICQ gets launched properly
* * * *header("Content-Type: application/x-icq");
* * * *header("Content-Disposition: attachment; filename=".$icq.".uin");
* * * *// Fake the "Vignette StoryServer" tagline, which some ICQ clients check.
* * * *echo "<!-- Vignette StoryServer 5.0 ".gmdate( "D M d H:i:s Y")." -->\n";
* * * *// The data is in the form of an INI file.
* * * *echo "[ICQ Message User]\n";
* * * *// This is the paydirt field. It MUST be present.
* * * *echo "UIN=".$icq."\n";
* * * *// These fields can be empty but MUST be present for some ICQ clients.
* * * *echo "Email=\nNickName=\nFirstName=\nLastName=\n";
}
?>
Kanske denna kunde vara till hjälp på något sätt?
#EDIT: Fixade så att det är en function
#EDIT2: Lade till kommentarer.