View Single Post
ישן 24-08-07, 18:56   # 1
reXtea
חבר מתקדם
 
reXtea's Avatar
 
מיני פרופיל
תאריך הצטרפות: Dec 2006
מיקום: באר שבע
גיל: 31
הודעות: 374
שלח הודעה באמצעות MSN אל reXtea

reXtea לא מחובר  

ציטוט:
נכתב במקור על ידי Tomer צפה בהודעה
אממ ניסתי את הדוגמא הזאת ויש שגיאה...
PHP קוד:
# working vars
$host 'maplestory.nexon.net';
$service_uri '/Modules/Rank/Ranking.aspx?PART=/Controls/Rank/TotRank&ranktype=TotRank';
$vars ='/Controls/Rank/TotRank:RANK:tbCharacterName=KumbiKumbi';

# compose HTTP request header
$header "Host: $host\r\n";
$header .= "User-Agent: PHP Script\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: ".strlen($vars)."\r\n";
$header .= "Connection: close\r\n\r\n";

$fp pfsockopen("ssl://".$host443$errno$errstr);
if (!
$fp) {
   echo 
"$errstr ($errno)<br/>\n";
   echo 
$fp;
} else {
    
fputs($fp"POST $service_uri  HTTP/1.1\r\n");
    
fputs($fp$header.$vars);
    
fwrite($fp$out);
    while (!
feof($fp)) {
        echo 
fgets($fp128);
    }
    
fclose($fp);

וזאת השגיאה:
קוד:
Warning: pfsockopen() [function.pfsockopen]: unable to connect to ssl://maplestory.nexon.net:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in C:\Program Files\EasyPHP 2.0b1\www\ranking.php on line 17
Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (93373648)
__________________
Amir fridman
-----------------------
Professional website developer.
xhtml, css, javascript, xml, ajax, php, mysql
  Reply With Quote