|
-
Jul 31st, 2005, 03:49 PM
#1
Thread Starter
Admodistrator
Catching packets (Cant explain)
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
-
Jul 31st, 2005, 05:22 PM
#2
Re: Catching packets (Cant explain)
Checkout the HTTP Winsock links in my sig. I have made couple of example programs which send data to PHP scripts.
-
Aug 11th, 2005, 11:51 AM
#3
Thread Starter
Admodistrator
Re: Catching packets (Cant explain)
Right, but my problem is sending packets from php not to it
-
Aug 11th, 2005, 01:50 PM
#4
Re: Catching packets (Cant explain)
 Originally Posted by |2eM!x
Okay, i want to make a program in VB that will send data to my php site.
That's not what you asked 
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.
-
Aug 11th, 2005, 03:53 PM
#5
Thread Starter
Admodistrator
Re: Catching packets (Cant explain)
Little miscommunication:
Id like to know how i could catch the data sent? From there, i could probably do it on my own
I meant catching the data sent from my prog in PHP (thats why im in PHP forums )
Anywho ill check out fsockopen
-
Aug 11th, 2005, 04:12 PM
#6
Re: Catching packets (Cant explain)
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|