dragunu Posted June 2, 2007 Share Posted June 2, 2007 dear all, i am currently writing an online transaction system. I am using the following code: $url = "https://site.com?username=test&password=test $handle = fopen( $url, "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $saver = $buffer; strval($string); } fclose($handle); } please note that the actual url has more variables and the variables i am sending for testing are correct. the problem is that its not working. Now im not sure if the error code im getting is something from the payment gateway's side or the code is not correct. any suggestions please? thanks dragunu Quote Link to comment https://forums.phpfreaks.com/topic/54006-sending-get-variables-thru-https-using-fopen/ Share on other sites More sharing options...
chigley Posted June 2, 2007 Share Posted June 2, 2007 $url = "https://site.com?username=test&password=test"; Quote Link to comment https://forums.phpfreaks.com/topic/54006-sending-get-variables-thru-https-using-fopen/#findComment-266979 Share on other sites More sharing options...
dragunu Posted June 2, 2007 Author Share Posted June 2, 2007 yes ok. i did the " and the semicolon. just forgot to put them in code section so the code is ( without pasting mistakes ) $url = "https://site.com?username=test&password=test"; $handle = fopen( $url, "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $saver = $buffer; strval($string); } fclose($handle); } suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/54006-sending-get-variables-thru-https-using-fopen/#findComment-266984 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.