I got a PHP program running in a Apache 2.0.52 webserver with PHP 4.3.10. The page is supposed to go to a predefined place and pick a raw email file and use the exim command to forward it. The PHP page is contained in a link with certain variables when I define the variables on the command line and then copy the exim command out of the PHP it works perfectly with no problems but when I use the link to parse the variables I get an error message in the browser Illegitimate format. I am including a copy of the link I click on to call the page below. I wonder if someone on the list can may be help me. Have I compiled PHP wrong or is the code itself wrong. Or is there a better way to do the below. Thank you in advance Carinus http://localhost.domain.com/mailrelease/Release.php?id=1CwdBD-0002z8-1K&date=20050203&name=user@xxxxxxxxxx <html> <head> <title> Releasing <?php echo($_GET['id']); ?> to all recipients </title> <body> <p> Releasing email message <b> <?php echo($_GET['id']); ?> </b> to <b> <?php echo ($HTTP_GET_VARS['name']); ?> </b> </p> <?php $file = $_GET['id']; $date = $_GET['date']; $name = $_GET['name']; if(preg_match("/^[a-zA-Z0-9]+$/",$file) && preg_match("/^[0-9]+$/",$date) && preg_match("/^[a-zA-Z0-9\_\.\-]+@[a-zA-Z0-9\.\-]+$/",$name)) { system("/usr/exim/bin/exim -oi -f postmaster -F postmaster $name > /var/www/html/spam/$date/$file"); echo("<p> Message released <p>"); } else { echo("$file, $name, or $date is not legitimate format!\n"); } ?> </body>