PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// echo $file_name does return the file name.
// this part however doesnt add the
// the $file_name attachement to the mail
@copy($file, "$absolute_path/$file_name");
include('Mail.php');
include('Mail/mime.php');
$text = 'Prueba';
$html = '<html><body>Prueba</body></html>';
$file = $file_name; // Doesnt Get the $file_name
// echo $file_name does return the file name.
// this part however doesnt add the
// the $file_name attachement to the mail
@copy($file, "$absolute_path/$file_name");
include('Mail.php');
include('Mail/mime.php');
$text = 'Prueba';
$html = '<html><body>Prueba</body></html>';
$file = $file_name; // Doesnt Get the $file_name
Did try $_GET and $_REQUEST['file_name']
Didnt work however, Any other ideas?
What is $file used for? Does that get passed to something? If you echo $file right after that assignment, what does it say? If $file_name is set, then you assign $file = $file_name and $file is blank, then it looks like something is resetting the value of $file_name (possible one of the includes?)