Text file on the fly for user to download using php
Here's the code for generating a text file on the file for user to download.
Make sure you don't have any output before this code, otherwise it will be shown on the downloaded file also.
<php? //Generate text file on the fly
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=test.txt");
$str="test";
echo $str;
?>
Export/import windows server DNS zones
You can use Export-DnsServerZone and Import-DnsServerZone . Export: Export-DnsServerZone -Name "test.com" -Filename "test...
Mais vistos
-
Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike "*" -and En...
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
First you have to configure a wpad site in your IIS Open the proxypac.pac file you have previously created and save as wpad.dat. Copy wpa...