Dibatalkan

Very IMPORTANT BUT SIMPLE FIX

I am working on a script and i get this error

Warning: fsockopen() [[url removed, login to view]]: unable to connect to [url removed, login to view] (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in XXXXXXXXXXXXXX on line 84

I have contacted my host to make sure that ssl and all that is enabled he says it has been enabled and it still dont work

here is my server info

[url removed, login to view]

If any one see what that problem is please let me know how to maybe fix it and maybe how to get it to work here is a copy of the php code that i am using to witch is causeing the problem

class CYsHttpClass

{

protected $cookies, $postdata,$r_header,$r_content,$s_request;

final protected function addCookie($k, $v)

{

if(is_array($k))

for($i=0;$i<sizeof($k);$i++)

$this->cookies[$k[$i]] = $v[$i];

else

$this->cookies[$k] = $v;

}

final protected function addPostData($k, $v)

{

if(is_array($k))

for($i=0;$i<sizeof($k);$i++)

$this->postdata[$k[$i]] = $v[$i];

else

$this->postdata[$k] = $v;

}

final protected function httpConnect($url,$method='GET',$referer='',$userag ent='PayChain')

{

$port = 80; //Set Default Port to 80

$method = strtoupper($method);

list($protocol,$server,$script) = preg_split("/(http|https)?://([^/]+)([^ ]*)/",$url,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);

if($protocol=="https")

$port = 443;

if(strpos($server,":") != false)

list($server,$port) = preg_split("/([^:]+):(.+)/",$server,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);

$cookiestring = "";

if(is_array($this->cookies))

if(sizeof($this->cookies) > 0)

foreach($this->cookies as $key=>$value)

{

if(strlen($cookiestring) != 0)

$cookiestring .= '; ';

$cookiestring .= urlencode($key) . '=' . urlencode($value);

}

$postdatastring = "";

if(is_array($this->postdata))

{

$postdatastring = "";

if(sizeof($this->postdata) > 0)

foreach($this->postdata as $key=>$value)

{

if(strlen($postdatastring) != 0) $postdatastring .= '&';

$postdatastring .= urlencode($key) . '=' . urlencode($value);

}

}

$this->postdata = array(); // reset postdata field after use

$this->s_request="$method $script HTTP/1.1rn";

$this->s_request.="Host: $serverrn";

$this->s_request.="Accept: */*rn";

if($cookiestring)

$this->s_request.="Cookie: $cookiestringrn";

if($referer)

$this->s_request.="Referer: $refererrn";

if($useragent)

$this->s_request.="User-Agent: $useragentrn";

$this->s_request.="Connection: closern";

if($method == "POST")

{

$this->s_request.="Content-Type: application/x-www-form-urlencodedrn";

$this->s_request.="Content-Length: ".strlen($postdatastring)."rn";

$this->s_request.="rn$postdatastringrn";

}

else

$this->s_request.="rn";

$sock = fsockopen(($protocol=="https"? "ssl://".$server : $server), $port, $errno, $errstr);

if($sock)

fwrite($sock, $this->s_request);

else

{

$this->r_header = "$errstr ($errno)";

return -1;

}

$this->r_header = "";

while($str = trim(fgets($sock, 4096)))

$this->r_header .= "$strn";

if(preg_match_all("/Set-Cookie: (.*); path/", $this->r_header, $newcookie))

foreach($newcookie[1] as $c)

{

list($k,$v) = explode("=", $c);

$this->cookies[$k] = $v;

}

$this->r_content = "";

while(1)

{

$buf = fread($sock,8192);

if(strlen($buf) == 0) break;

$this->r_content .= $buf;

}

// echo("DEBUG:".$this->r_content);

}

}

I have contacted my host and he says everything i need turned on for that to work is turned on and it still dont work

I wil pay via escrow but i do not want to spend a lot as i know its nothing major but i do not know what to do to fix it i do also have root to my server so if it is a server issue then i can fix that

I will not realease mone until the work is completed

I wish to have it fixed Asap if possable

Kemahiran: Linux, PHP

Lihat lebih lanjut: you fix it, the fix it, root info, return path, referer url php, my fix it, my fix com, my fix, i will fix it, how to fix com, how fix it, how do you get linux, how do you fix it, how do i fix my, get my fix, fix it it, find set-root, final trim, escrow pay ent, escrow method, escrow application form, escrow agent pay, do you have to pay to use escrow com, break com, class paychain

Tentang Majikan:
( 3 ulasan ) rossville, United States

ID Projek: #339655

5 pekerja bebas membida secara purata $40 untuk pekerjaan ini

websree

Hi, Kindly review pmb for more details. Thanks

$50 USD dalam 0 hari
(210 Ulasan)
8.2
phpexp

Please check the PMB.

$35 USD dalam sehari
(202 Ulasan)
8.1
rockerstech

Ready to do please give me your url and other related detail..thanks.

$55 USD dalam 5 hari
(81 Ulasan)
7.7
SourceBurner

I'll fix it right away!

$30 USD dalam sehari
(100 Ulasan)
5.6
rekc0r

pls check your pmb

$30 USD dalam 0 hari
(2 Ulasan)
3.4