• 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
php call from Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

php call from Cocoa


  • Subject: php call from Cocoa
  • From: Lorenzo <email@hidden>
  • Date: Wed, 21 Sep 2005 14:20:11 +0200

Hi,
I have to call a php script on my web server
    http://www.dom.com/get.hph
it returns a string. Actually I call

    phpPath = [NSURL URLWithString:@"http://www.dom.com/get.hph";];
    response = [NSString stringWithContentsOfURL:phpPath
                encoding:NSUTF8StringEncoding error:&error];

It works sometimes. Many times it returns nil (but the error code is still
zero). We have already spoken here that instead of using
stringWithContentsOfURL it is better to use NSURLConnection, but before I
implement it, I would like to know whether there is a better way. Also
NSURLConnection is asynchronous while I need immediate feedback.
Any idea?


Best Regards
--
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Universal Binary and 3rd party PPC frameworks
      • From: day welsh <email@hidden>
    • Re: php call from Cocoa
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Mysterious warning (initialization from distinct Objective-C type)
  • Next by Date: Re: NSDateFormatter time zone not "sticking"? [SOLVED]
  • Previous by thread: Re: NSRoundRectBezelStyle still doesn't work with NSPopUpButton?
  • Next by thread: Re: php call from Cocoa
  • Index(es):
    • Date
    • Thread