I haven’t the foggiest, so if you could help:
[php]<?php
$home=getcwd();
function getemail() {
?>
function filestart($email,$fileinfo)
{
chdir(“data”);
if(!(file_exists($email))) {
$fptr = fopen($email,“w”) or die(“Unable to open file!1”);
fwrite($fptr," “);
fclose($fptr);
}
$ffptr = fopen($email,“a+”) or die(“Unable to open file!2”);
fwrite($ffptr,$fileinfo);
chdir($home);
}
// $email="[email protected]”;
if (!($_POST[‘Submit’])) {
filestart($email,“The rain in Spain…”);
} else {
getemail();
}
[/php]
it works with the commented line uncommented, but I have no clue as to why it is not working… Help!!!
always,
dg