Set Filename for Excel Support
Set Filename for Excel Support
elias122
Posts: 2Questions: 0Answers: 0
Hello together
We use Data Tables latest Version and everything is working fine except the following. How can we set a custom File Name to the Exported Excel File
Below the Code of the Datatable Call:
```<?php
include '../includes/head1.php';
$currentPage = 'bulkdig';
$nameservers?>
<body>
<?php
require '../includes/nav.php';
?>
Bulk DIG Tool
<
div class="container center">
<?php if (isset($_POST['domains'])) { $idn_domain = $_POST['domains']; $domain = $idn_domain; $domain = explode("\r\n", $domain); $domain = preg_replace('/\s+/', '', $domain); # printf("<br>
Domain | \n"); printf("ohne www | \n"); printf("www | \n"); printf("MX IP | \n"); printf("MX Eintrag | \n"); printf("
%s | ", $entry); printf(""); foreach ($a_record as $arr) { echo $arr['ip']; } printf(" | "); printf("");
foreach ($www as $arrwww) {
if ($arrwww["type"] == "CNAME") {
$cname = $arrwww["target"];
$cname = dns_get_record($cname, DNS_A);
foreach ($a_record as $arrcname) {
echo $arrcname["ip"], " "; } echo "(" . $arrwww["target"], ")"; } else { echo $arrwww["ip"]; } } printf(" | ");
printf(" ");
foreach ($mx as $arrmx) {
$mx1 = $arrmx['target'];
$mx1 = gethostbyname($mx1);
echo $mx1, " "; } printf(" | ");
printf(" ");
foreach ($mx as $arrmx) {
echo $arrmx['target'], " "; } printf(" | ");
}
printf("
This discussion has been closed.
Replies
Use
filename
, see example here.Colin
Hello Colin
Thanks for your help. This worked perfectly