Re: is MAIL safe ?

From: Date: Wed, 15 Dec 2004 17:00:18 +0000
Subject: Re: is MAIL safe ?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16261@lists.php.net to get a copy of this message
Hi, shaun wrote:
Hello, I am having users fill out a PDF form with information, having PDF form send FDF data to script on a web sever. Script (see below) takes data file, saves to disk, attaches to email, sends email and then deletes data file from server. All works perfectly. <?php $tmpfname = tempnam("/tmp", "tmp_"); $tmpfname .= ".fdf"; $fptr = fopen("$tmpfname", "w"); fputs($fptr, $HTTP_RAW_POST_DATA); fclose($fptr); ?> <?php include('Mail.php'); include('Mail/mime.php'); ... ?>
Is the code above within one file or are you passing $tmpfname from one script to the other?

« previous php.pear.general (#16261) next »