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.
Http Posts
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Code: Select all
fsockopen($host, 80, $errno, $errstr);
echo "Error: $errstr (error code: $errno)";Woaw. Wait a sec. I changed it to hearts:
And then my response:
You see I used exit with the results of $transaction. I didn't state this before, and that's my bad. But now I think I actually was able to connect to the server, cuz look when I change [exit($transaction);] with [exit($transaction."CONNECTION WAS SUCCESSFUL!");] my response then becomes:
Yippee! Thanks for all the post guys, I'm so glad that this function works and ALL the help on this thread! Thank you guys SO, SO MUCH!
PS: I'll start another thread if I get any other troubles, considering this thread is getting a little to big. K?
POST-PS: Btw, what kind of http response is that anyway?
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!
Yippee! Thanks for all the post guys, I'm so glad that this function works and ALL the help on this thread! Thank you guys SO, SO MUCH!
PS: I'll start another thread if I get any other troubles, considering this thread is getting a little to big. K?
POST-PS: Btw, what kind of http response is that anyway?
Last edited by JellyFish on Sat Aug 18, 2007 12:10 pm, edited 1 time in total.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
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.
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.
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.
Thanks.