ik probeer de output van een phpfile als bestand naar een gebruiker te sturen via de bijgevoegde code, maar hij stuurt tot nu toe alleen nog maar de hele phpfile, iemand een idee?
verstuur.php:
<?php
header("Content-type: Application/octet-stream");
header("Content-Disposition: attachment; filename=\"bestand.txt\"");
readfile("file.php");
exit;
?>
en file.php:
<?php
echo "testtest";
?>
1.495 views
knop om je tekst aan te passen.