Posted: Sat Aug 18, 2007 11:41 am
Then you missed my post. Look up.JellyFish wrote:But anyways, I don't understand what you mean by this: die( ............ 'The error is: '.$errstr);. I didn't get that.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Then you missed my post. Look up.JellyFish wrote:But anyways, I don't understand what you mean by this: die( ............ 'The error is: '.$errstr);. I didn't get that.
Code: Select all
fsockopen($host, 80, $errno, $errstr);
echo "Error: $errstr (error code: $errno)";Code: Select all
$socket = @fsockopen($url['host'], 80, $errno, $errstr) or die('Error: unable to open a socket connection with '.$url['host'].'\n $errno: $errstr');
And I think that this is not an error but a response that function HttpRequest returns and that I echoed out.HTTP/1.0 302 Moved Temporarily Location: https://www.linkpointcentral.com/lpc/servlet/lppay X-Cache: MISS from wc03.inet.mesa1.secureserver.net Connection: close
Code: Select all
$transaction = HttpRequest("https://www.linkpointcentral.com/lpc/servlet/lppay", $myorder);
exit($transaction);HTTP/1.0 302 Moved Temporarily Location: https://www.linkpointcentral.com/lpc/servlet/lppay X-Cache: MISS from wc02.inet.mesa1.secureserver.net Connection: close CONNECTION WAS SUCCESSFUL!
What's wrong with that?superdezign wrote:By the way, your die() uses single quotes.
... "\n", "$errno", "$errstr".JellyFish wrote:What's wrong with that?superdezign wrote:By the way, your die() uses single quotes.
I really don't understand what you're trying to say but I'll change them.superdezign wrote:... "\n", "$errno", "$errstr".JellyFish wrote:What's wrong with that?superdezign wrote:By the way, your die() uses single quotes.
Oooooooooooooooooooooooooooooooooooooooooooooooooooooooooh yeah! I almost forgot. So by me using single quotes I shouldn't expect $errno and $errstr to out put as the values of these variables.superdezign wrote:Really? Oh, then this is definitely a detail that you'll need to know.
Single quotation marks take variables as literal strings, not regular variables. Also, it doesn't render special characters.
Double quotation marks allow you to place variables inline and render special characters, such as the newline.
That doesn't make much sense. curl sends a post request if you set CURLOPT_POSTJellyFish wrote:I already stated that I can not use the port on my server to connect to a remote server, thus I can not use cURL methods. My only option is to make a post request.