2

What is a simple way to send a few obj-c variables to a php script, and return data. (Sample code please :))

JJJollyjim
  • 5,837
  • 19
  • 56
  • 78

1 Answers1

0

Try to use property list encoding: http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/PropertyLists/Introduction/Introduction.html

Built-in in Objective-C, and very easy to use from PHP, as it's only XML...

Macmade
  • 52,708
  • 13
  • 106
  • 123
  • But how do I actually send it to the server? – JJJollyjim Feb 26 '11 at 07:05
  • 1
    Use the NSURLRequest class: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/Reference/Reference.html – Macmade Feb 26 '11 at 07:08