Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Fatal error: call to undefined function..., nie wiem czemu tak jest...
eko_moto
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.01.2006
Skąd: z Wawy

Ostrzeżenie: (0%)
-----


download.php

  1. <?php
  2. $dl = $_GET['dl'];
  3. $typ = mime_content_type("$dl");
  4. header("Content-type: ".$typ);
  5. header("Content-Disposition: attachment; filename=".$dl);
  6. readfile("$dl");
  7. ?>


To jest kod, wczytany z parametrem (np. download.php?dl=texty/plik.exe) wywołuje błąd:
Fatal error: Call to undefined function mime_content_type() in download.php on line 3

Ten post edytował eko_moto 10.03.2006, 16:35:53
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 16:35