Jump to content


Photo

Porting Code


  • Please log in to reply
2 replies to this topic

#1 rab

rab
  • Members
  • PipPipPip
  • Advanced Member
  • 155 posts

Posted 23 April 2006 - 07:32 PM

I have some C code i want to port to PHP, the C program is based off of creating a socket send, recieving and analyzing the data recieved. How would I do this is PHP?

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 23 April 2006 - 08:33 PM

There are socket functions built into PHP. Take a look at [a href=\"http://us3.php.net/sockets\" target=\"_blank\"]http://us3.php.net/sockets[/a]

It should be quite easy to do the port.

If you want some other folks to look at your C code, you can post it to [a href=\"http://pastebin.com\" target=\"_blank\"]pastebin.com[/a] and post the URL that points to the code.

Ken

#3 rab

rab
  • Members
  • PipPipPip
  • Advanced Member
  • 155 posts

Posted 23 April 2006 - 09:21 PM

[a href=\"http://rafb.net/paste/results/lpxXeM27.html\" target=\"_blank\"]source[/a]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users