Script Garage

 

Can e-mail harvesters read PHP scripts?

I am setting up my personal Web site and I'd like to have a form that will e-mail me when someone enters info and submits. I know that the HTML mailto: function is no good for this because e-mail harvesters will find my address. If I put the e-mail function in a PHP script, will I be safe, or can the bots read PHP? What I was planning was this HTML: <form action= "php/sendmail.php" method="post"> and this PHP script: <?php $to = "my_email@my_domain"; $subject = "E-mail from Web form"; $body = "Hard-coded message for starters."; mail($to, $subject, $body) ?> Thanks for your advice, Houyhnhnm

Public Comments

  1. if you setup your server correctly, the script will only be visible to your server. Your server will interpret the script and spit out only the script's result. the only way for that harvester to parse your php script would be to "hack" your server to access your scripts
Powered by Yahoo! Answers