Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Pobieranie statusu GG a Internal Server Error
iker
post 23.04.2006, 21:34:08
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 7.11.2004
Skąd: Kraków

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


Mam taki kod na sprawdzanie statusu GG.

  1. <?php
  2. function statusGG($number, $name){
  3. $file = fopen ("http://www.gadu-gadu.pl/users/status.asp?id=".$number."&amp;styl=2", "r");
  4. $status = fgets($file, 2);
  5. if ($status){
  6. return '<a href="gg:'.$number.'" style="background:url('template/images/gg/'.$status.'.png') no-repeat;padding:0px 0px 0px 20px;">'.$name.'</a><br />';
  7. } else {
  8. return '<img src="template/images/gg/1.png" />&nbsp;&nbsp;<a href="gg:'.$number.'">'.$name.'</a>';
  9. }
  10. }
  11.  
  12. echo statusGG('5284094', 'Tomek');
  13. ?>


Po wstawieniu go na localhoscie wywala mi Internal Server Error - 500. W php.ini allow_url_fopen = On więc powinno działać.

Co jest nie tak? Kod jest oczywiście Ok, działa na innym serwerze.
Go to the top of the page
+Quote Post
slash12345
post 24.04.2006, 17:00:15
Post #2





Grupa: Zarejestrowani
Postów: 70
Pomógł: 0
Dołączył: 21.04.2006

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


Błąd w konfiguracji serwera. Ktoś musiał bawić się php.ini...


--------------------
Kod
thewanderer@debian:~$ sudo apt-get dist-upgrade
Konieczne pobranie 666KB pakietów. Czy chcesz kontynuować? [T/n] nieeeeeeee
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 00:34