Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problemy z fsockopen, Unable to find the socket transport "htt
lucas131
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 21.03.2005

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


Moj skrypt wyglada nastepujaco:
Kod
$fp = fsockopen("http://www.dollars4babes.com", 80, $errno, $errstr, 30);
if (!$fp) {
   echo "$errstr ($errno)<br />\n";
} else {
   $out = "GET / HTTP/1.1\r\n";
   $out .= "Host: www.dollars4babes.com/mpa2/gal/103047/2/1091108724\r\n";
   $out .= "Connection: Close\r\n\r\n";
   fwrite($fp, $out);
   while (!feof($fp)) {
       $szPlik .= fgets($fp, 128);
   }
  
   fclose($fp);
  
   echo $szPlik;
  
   exit();
}


Wynik:
Warning: fsockopen() [function.fsockopen]: unable to connect to http://www.dollars4babes.com:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured php?) in d:\wamp\www\pob_thumb\pob_thumb.php on line 59
Unable to find the socket transport "http" - did you forget to enable it when you configured php? (99221504)

Co musze wlaczyc w php.ini by skrypt zadzialal, moze w skrypcie mam jakies bledy?
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 20.08.2025 - 06:23