LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-14-2011, 04:40 AM   #1
rakshita09
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Rep: Reputation: 0
Smile Sockets in php


to interact between the client and server using sockets in php is it necessary to write the separate programs for client and server


Thanks for ur reply in advance
 
Old 04-15-2011, 05:38 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
It would be helpful if you were to elaborate on what your concern is as your question is somewhat vague. I might also suggest that LQ Servers isn't the best place for this type of (programming) question and you will likely get a much better response in either a PHP programming forum or even the Software forum.

From a conceptual standpoint, for a socket based, client - server, application you would need two processes to simultaneously be operating. One would be the server and would listen for connections and the other would be the client that establishes the connection with the server. Writing such an application set would probably be EASIER in separate FILES, but wouldn't necessarily have to be on separate MACHINES. In order to write it both a client and a server in one program, you would probably need to fork off a process and have it determine if it is the parent or child.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php sockets support puter Linux - Software 1 08-27-2008 08:06 PM
PHP - Multithreaded Sockets baddah Programming 4 11-20-2007 12:06 AM
PHP - can't get to sockets to communicate ivanatora Programming 3 11-08-2007 07:54 AM
Sockets In PHP baddah Programming 4 10-17-2007 09:35 AM
PHP + Sockets Problem aspr Programming 0 06-04-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration