Hi everyone!
(Newbie at PHP here...)
I have been trying to pull this off for 3 days now, and nothing seems to work for me. I'd be greatful if any of you could lead me in the right direction!
I'm not sure what you will need to know, so I'll probably provide to much info.
System: Apache-AdvancedExtranetServer/1.3.20 (Mandrake Linux/3mdk) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6 on Linux. Curl is compiled with OpenSSL.
When I type "which curl" I get /usr/bin/curl
What I'm trying to do is -
Using a form that the client fills out, variables are passed to a Curl php page. (That part I can do!)
Once curl has the variables, I need Curl (in the background) to open a port (443 for ssl?) submit a post (with the variables it was sent from the previous form) using ssl to a secured server, wait for a response, then display the response)
I have been looking everywhere for examples on how to use Curl! I've read (what seems to be) 100's of forum posts trying to get a better understanding of this. And I just don't get it. Half the examples I find show $ch = curl_init(); and half of them show just a command line style with exec("$curl -d blah blah blah ...
I've tried the exec function and I don't get any errors, but it just sits there. white page - Curl doesn't execute or it does and I don't know it???
Can anyone explain this better to me or possibly show me a php page using Curl that does what I'm looking to do?
I'd be excited about almost anything at this point! (I think I'm losing hair over this)
Thanks in advance!! :-)