PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
It is currently Sun Feb 23, 2020 3:43 pm

All times are UTC - 5 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Feb 01, 2012 8:50 am 
Forum Newbie

Joined: Wed Feb 01, 2012 8:32 am
Posts: 1
Hey guys,

This is my first post so congrats to me! =)

I have a little problem in trying to implement a client server. I'm trying to get a simple app on facebook. Obviously it's developed in php mostly.
I have a client side code that is supposed to connect to server. So the server has to be listening to accept connection... my problem is that I'm not sure exactly how to be doing this.
Ideal for me would be to make the server.php file run somehow, maybe by some command used in the client.php file? The server is handling a DB so there's more than a few code lines on it.

I'm stuck with this simple yet annoying issue.
Any code little code example for what I should actually do to solve this would be greatly appreciated.
Thanks a lot guys.

PostPosted: Fri Feb 17, 2012 6:57 am 
Forum Contributor
User avatar

Joined: Wed Sep 09, 2009 5:55 am
Posts: 323
Location: Australia
I face this with a similar sort of scenario and i was pointed in the direction of using an existing protocol system such as XMPP or AMQP to deliver your messages.
There is code examples around for communicating on both protocols in PHP ( || )
Regardless of which way you do it, you could run into problems where people *could* inject code directly into your system. So make sure to sanitize EVERYTHING!

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: No registered users and 6 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group