• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa <- > PHP <-> MySQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa <- > PHP <-> MySQL


  • Subject: Re: Cocoa <- > PHP <-> MySQL
  • From: Peter Blazejewicz <email@hidden>
  • Date: Tue, 3 Mar 2009 11:40:56 +0100

hi Steve,
this ADC article:
http://developer.apple.com/safari/articles/creatingrestfulclients.html
should give you all required pointers I think. Even if written as example of REST with Ruby it describes how to do POST/GET (and others) based requests to server side.
Examples in article are synchronous ones and you could find it more efficient or better suited for your application to use asynchronous requests with NSURLConnectionDelegate (that part is quite good documented in documentation that ships with Xcode I think),


regards,
Peter Blazejewicz

On Mar 3, 2009, at 10:50 AM, Steve Cronin wrote:

Folks;

I've inherited some Cocoa code that uses NSMutableNURLRequest and NSURLConnection to pass .php request to a server.
The NSMutableURLRequest packs up some data into the the .php which stuffs this data into a MySQL database.


This is all working nicely.

Now what I've been asked to make happen is to submit a different bit of php which will run a query against this same MySQL database.
We want to use Cocoa to submit the php script and retrieve the response, which will be the results of the query.


Setting aside the php on the server side, I'm hoping to find a working example of something similar to the Cocoa piece of this new requirement.

I'm just looking for how to 'submit', wait for response, capture the response / error in Cocoa.
I'll get the server side figured out separately


Thanks for any pointers!
Steve
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Cocoa <- > PHP <-> MySQL (From: Steve Cronin <email@hidden>)

  • Prev by Date: Cocoa <- > PHP <-> MySQL
  • Next by Date: Line height multiple and printing
  • Previous by thread: Cocoa <- > PHP <-> MySQL
  • Next by thread: Line height multiple and printing
  • Index(es):
    • Date
    • Thread