![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 319 Pomógł: 0 Dołączył: 23.08.2007 Skąd: Częstochowa/Dubidze Ostrzeżenie: (70%) ![]() ![]() |
Witam
Chcialbym pobrac plik przez php za pomoca header, moj kod wyglada nastepujaco: Kod header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename".$file); readfile("scripts_".$file); Pierwszy raz mam doczunienia z header'ami jesli moge to tak nazwac, czy powinienem cos uaktywnic w php.ini a moze cos mam zle w skrypcie; Ponizej wyswietlane bledy: Kod Notice: Undefined variable: _site in C:\Program Files\EasyPHP-5.3.2i\www\skryptoteka\functions\scripts_download.php on line 21 scripts_jakisadresik.rar Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\EasyPHP-5.3.2i\www\skryptoteka\inc\top.php:68) in C:\Program Files\EasyPHP-5.3.2i\www\skryptoteka\functions\scripts_download.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\EasyPHP-5.3.2i\www\skryptoteka\inc\top.php:68) in C:\Program Files\EasyPHP-5.3.2i\www\skryptoteka\functions\scripts_download.php on line 23 Warning: readfile(scripts_jakisadresik.rar) [function.readfile]: failed to open stream: No such file or directory in C:\Program Files\EasyPHP-5.3.2i\www\skryptoteka\functions\scripts_download.php on line 24 -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 19.06.2025 - 08:57 |