Autor | Zpráva | ||
---|---|---|---|
Medvídek Profil |
#1 · Zasláno: 25. 4. 2008, 16:13:12 · Upravil/a: Medvídek
Mam problém,
Funkce if(file_exists ("http://pencin.tomjanda.eu/albums/".$nahled)) ale pokud si dam vypsat http://pencin.tomjanda.eu/albums/".$nahled tak vse v poradku :( |
||
Joker Profil |
#2 · Zasláno: 25. 4. 2008, 16:18:28
Medvídek
Vysvětlení: http://cz.php.net/file_exists As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to List of Supported Protocols/Wrappers for a listing of which wrappers support stat() family of functionality. http://cz.php.net/manual/en/wrappers.http.php Supports stat() No |
||
Medvídek Profil |
#3 · Zasláno: 25. 4. 2008, 16:41:15
Děkuju, to jsme netušil, místo toho budu raději zjišťovat příponu.
|
||
Joker Profil |
#4 · Zasláno: 25. 4. 2008, 17:20:41
Stačí ten soubor prostě zkusit načíst, ne? Buď to půjde, nebo nepůjde...
|
||
vertigo4 Profil |
#5 · Zasláno: 25. 4. 2008, 17:25:35
Medvídek
ano, jak píše Joker --> if(file_get_contents("http://pencin.tomjanda.eu/albums/".$nahled)) { } else { } |
||
Časová prodleva: 16 let
|
0