PDA

View Full Version : Convert PHP to ASP



silsteel
06-28-2007, 03:05 PM
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
$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);


?>

djr33
06-28-2007, 09:21 PM
See if this is helpful--
http://www.dynamicdrive.com/forums/showthread.php?t=11051

silsteel
06-29-2007, 01:19 PM
See if this is helpful--
http://www.dynamicdrive.com/forums/showthread.php?t=11051

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: