padone
05-31-2005, 10:47 AM
Hey can anyone convert this php script into asp for me of if there is a link to a good tut or something that would be cool
<?php
$content="
Hi $theirname\n
You have been challenged by \n $yourname \n to beat their score at : http://www.domain.co.uk \n
$name's Total lap time was\n $totalrace \n See if you can do better \n
";
mail($theiremail, "Challenge from $name", $content, "From: $youremail");
$filename = "answer.txt";
$fd = fopen( $filename, "r" );
$contents = fread( $fd, filesize( $filename ) );
fclose( $fd );
mail( "$youremail", "GT KARTING", "$contents\n\n", "From:Studio@domain.co.uk\n" );
$signal=1;
echo "signal=$signal";
?>
<?php
$content="
Hi $theirname\n
You have been challenged by \n $yourname \n to beat their score at : http://www.domain.co.uk \n
$name's Total lap time was\n $totalrace \n See if you can do better \n
";
mail($theiremail, "Challenge from $name", $content, "From: $youremail");
$filename = "answer.txt";
$fd = fopen( $filename, "r" );
$contents = fread( $fd, filesize( $filename ) );
fclose( $fd );
mail( "$youremail", "GT KARTING", "$contents\n\n", "From:Studio@domain.co.uk\n" );
$signal=1;
echo "signal=$signal";
?>