Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z wyciagnieciem obrazka z serwisu
miszqa
post
Post #1





Grupa: Zarejestrowani
Postów: 168
Pomógł: 0
Dołączył: 15.01.2004
Skąd: Suwalki/Poznan

Ostrzeżenie: (10%)
X----


  1. <?php
  2.  
  3. $GrabURL = &#092;"http://pogoda.wp.pl/mi.html?POD=1&mid=1201261&date=\"; 
  4. $GrabStart = &#092;"<br><br><img src=\"\"; 
  5. $GrabEnd = &#092;"<br><br>temp\"; 
  6. ##### 
  7. $OpenFile = fopen(&#092;"$GrabURL\", \"r\"); 
  8. $RetrieveFile = fread($OpenFile, 200000); 
  9. $GrabData = eregi(&#092;"$GrabStart(.*)$GrabEnd\", $RetrieveFile, $DataPrint); 
  10. $DataPrint[1] = str_replace(&#092;"i/\", \"<img width=\"50\" height=\"50\" border=\"0\" src=\"http://pogoda.wp.pl/i/\", $DataPrint[1]); 
  11. fclose($OpenFile); 
  12. echo &#092;"<a href=\"http://pogoda.wp.pl/mi.html?mid=1201261\" border=\"200\" target=\"_blank\">\";
  13. echo &#092;" $DataPrint[1]\";
  14. echo &#092;"</a>\";
  15.  
  16. ?>

tak wyglada skrypt i ten skrypt nie chce mi pobrac obrazka a nie wiem co jest tego przyczyna? ktos ma pomysl. Bo jak bawilem sie na lokalu to dzialalo?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
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 - 12:07