Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]Jak pobrać obrazek zamiast go wyświetlić ?
zientek18
post
Post #1





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 8.01.2006

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


Czy ktoś by mi mógł powiedzieć jak od razu pobrać obrazek zamiast go wyświetlić w przeglądarce ?

Ten post edytował zientek18 10.05.2009, 15:09:01
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
zientek18
post
Post #2





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 8.01.2006

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


Zrobiłem tak:

  1. <?php
  2. $file = 'images/aktualne_dew_kon/karty/A01.jpg';
  3. // Open the file to get existing content
  4. $current = file_get_contents($file);
  5. // Append a new person to the file
  6. $current .= "John Smith\n";
  7. // Write the contents back to the file
  8. file_put_contents($file, $current);
  9. ?>
  10.  
  11. <?php echo '<a href="'.$file.">pobierz</a> ?>


Ale nie mam pojęcia jak ta funkcja działa, a angielskiego to w ogóle nie znam (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Ktoś pomoże ? W sumie tą 1 cześć to skopiowałem i nawet nie wiem co dokładnie ona robi
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: 17.10.2025 - 07:42