-
Convert PHP to ASP
I have this one short section of code that I need to convert to ASP. Currently it's in PHP and our server does not support that. this code would be used to get someone's email address for a newsletter. I would really appreciate your help.
Here is the code:
PHP Code:
<?php
$var = ', '.$_GET['var'];
$fp = @fopen("file.txt", "a") or die("Couldn't open file.txt for writing! ". $var );
$numBytes = @fwrite($fp, $var) or die("Couldn't write values to file! " .$var );
@fclose($fp);
?>
-
-
Quote:
Originally Posted by
djr33
I checked that website out, but it didn't seem to convert it correctly, thus it didn't work. I guess it needs that human touch :rolleyes: