appinities
asked on
How to create and Use Sockets in PHP?
Please help me to create single Socket and Socket Arrays in PHP . How to operate DataArrival Socket Connect, Socket Error, Socket Close events in PHP in detail.
-Thanks
-Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for double posting, Ijn the above code
is Actually
Private Sub Sockm_DataArrival
is Actually
Private Sub Socket1_DataArrival
ASKER
Thanks Tagit, that link should help me alot, but I want you to convert my above codes into PHP. Thanks
ASKER
Ok letme reduce the complexity of my question...
What should be the codings for : -
Suppose I wanna create a socket (TCP sockets not HTTP) with 5 arrays and wanna Connect these arrays with "gateway.abcdxyz.com" with Port "9009"
Now, After successfully connectivity , I wanna send a string to connected server.. string is "hello are you there?"
Now, If the connected server reply to my request, then I wanna display those responded message which are coming from the Server..
Example:
If server responding "Yes I am here"
then, how can I get responded message and can display it ?
-Thanks :(
What should be the codings for : -
Suppose I wanna create a socket (TCP sockets not HTTP) with 5 arrays and wanna Connect these arrays with "gateway.abcdxyz.com" with Port "9009"
Now, After successfully connectivity , I wanna send a string to connected server.. string is "hello are you there?"
Now, If the connected server reply to my request, then I wanna display those responded message which are coming from the Server..
Example:
If server responding "Yes I am here"
then, how can I get responded message and can display it ?
-Thanks :(
ASKER
Lolz..Still no reply... Where are experts ???? :@
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks :)
no problem but why the B grade? works doesn't it?
ASKER
In visual basic 6.0 I am using a socking, its coding is like:
Im sending packets like:
Open in new window
Here (0) is the Array of the socket..
Same thing for Data Arrival method in vb6.0 is:
Open in new window
Same thing I wann do with the PHP sockets.. so please show me "How can I use above codings in PHP sockets"?
-Thanks alot in Advance..