Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Kompresja obrazka przed wyswietleniem na stronie, ... zeby stronka sie szybciej ladowala
bobens_83
post
Post #1





Grupa: Zarejestrowani
Postów: 112
Pomógł: 0
Dołączył: 7.11.2005
Skąd: z Czelsy

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


Witam. Mam pytanko, czy mozliwe jest aby przechowywac obrazki w katalogu na serwerze a w bazie jedynie ich ID. Nastepnie na stronie glownej (cos jak system news) wyswietlaja sie w petli obrazki, np 10 sztuk (skompresowane miniaturki obrazkow z katalogu). po kliknieciu na obrazek ten sie powieksza i pokazuje w oryginalnej rozdzielczosci. Jestli ma to sens to jakie funkcje PHP moga byc pomocne ? Pozdrawiam.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
bobens_83
post
Post #2





Grupa: Zarejestrowani
Postów: 112
Pomógł: 0
Dołączył: 7.11.2005
Skąd: z Czelsy

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


Tutaj czytam ze

Windows

The php_gd2.dll is included in a standard PHP installation for Windows, it's not enabled by default. You have to turn it on, the user may simply uncomment the line "extension=php_gd2.dll" in php.ini and restart the PHP extension.

Change:

#extension=php_gd2.dll

To:

extension=php_gd2.dll

You may also have to correct the extension directory setting from:

extension_dir = "./"

Or:

extension_dir = "./extensions"





w pliku php.ini odkomentowalem wiec ';extension=php_gd2.dll' -> 'extension=php_gd2.dll' . Poniewaz w pliku php.ini nie znalazlem slowa 'extension_dir' nie zrobilem z tym nic. zrestartowalem wszystkie uslugi i ciagle lipa (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)





phpinfo pokazuje ze wszystko jest ok:
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


Ten post edytował bobens_83 1.03.2008, 20:56:52
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: 3.10.2025 - 13:47