I have a contact form made in flash. This form uses php to pass the variables to my email address. I'm wondering what is the optimal permission settings for the php file. The following is the php file:
<?php
//echo phpinfo();
$email = "";
$message = "";
$name = "";
$email = $REQUEST['email'];
$message = $REQUEST['message'];
$name = $_REQUEST['name'];
$to = "myemail@email.com";
$subject="Contact Form";
$msg = "$email\n\n";
$msg .= "$name\n\n";
$msg .= "$message\n\n";
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
$header .= "From: ".$email."\r\n";
$header .= "Reply-To : ".$email."\r\n";
$header .= "Return-Path : ".$email."\r\n";
$header .= "X-Priority: 1\r\n";
$header .= "X-MSMail-Priority: High\r\n";
$header .= "X-Mailer: PHP4\r\n";
mail($to, $subject, $msg, $header);
echo "Message Sent";
?>