php call from Cocoa
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