Advice... Socket, URL, XML-RPC

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
siefkencp
Forum Commoner
Posts: 69
Joined: Thu Dec 16, 2004 8:50 am

Advice... Socket, URL, XML-RPC

Post by siefkencp »

I have a simple problem...

I want to pass a value to php from a client App I'm writing which I can use any of the available methods the php will simply store the value in the db and return an encrypted pair to the client app...

What's the smartest method? in your opinions of course... Socket server? Just let the variable be passed through a URL ...?var=value or do some sort of XML-RPC set up?

thanks for the input!
choppsta
Forum Contributor
Posts: 114
Joined: Thu Jul 03, 2003 11:11 am

Post by choppsta »

If it's something that simple I would simply use an HTTP POST. I would avoid a GET for a web service that does something, i.e. isn't read only.
siefkencp
Forum Commoner
Posts: 69
Joined: Thu Dec 16, 2004 8:50 am

Post by siefkencp »

Thanks... Thats exactly what i did... It simply echos out a the hash after running a crypt statement...
Post Reply