Witam, udostepnilem do pobrania pliki, poprzez header:
<?php
$filename = "jakis_plik.pdf";
header("Expires: 0"); // set expiration time header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download"); header("Content-type: application/pdf"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Disposition: attachment; filename=".basename($filename).";");
header("Content-Transfer-Encoding: binary");
?>
Chcialbym w tym pliku, umiescic kod Google Analitysc. Probowalem tak:
<html>
{kod google}
<?
{kod headera}
?>
</html>
...i nic, widac krzaki zamiast pdfa.
Probowalem tez wstawic kod googla w echo - tez nic z tego.
Co robic??