Okay, i want to make a program in VB that will send data to my php site. Id like to know how i could catch the data sent? From there, i could probably do it on my own
Hope you understand :wave:
Printable View
Okay, i want to make a program in VB that will send data to my php site. Id like to know how i could catch the data sent? From there, i could probably do it on my own
Hope you understand :wave:
Checkout the HTTP Winsock links in my sig. I have made couple of example programs which send data to PHP scripts.
Right, but my problem is sending packets from php not to it :wave:
That's not what you asked :confused:Quote:
Originally Posted by |2eM!x
But you can make an HTTP request in PHP. You need to use the fsockopen() function. There is a code sample on that page which shows how to make an HTTP request from PHP.
Little miscommunication:
I meant catching the data sent from my prog in PHP (thats why im in PHP forums :bigyello: )Quote:
Id like to know how i could catch the data sent? From there, i could probably do it on my own
Anywho ill check out fsockopen :wave:
Once you have written your VB app. You can send that data to the PHP script - like it shows in the application examples I've psoted here using PHP. Which is what your original question was.
You deal with the data sent from the VB program by treating it like you would deal with data from a HTML form. I.e: using $_GET and $_POST super variables.