Question about sending to PHP from Obj-C

2011-08-04 Thread Eric E. Dolecki
I have a little script sitting locally on my Mac (webserver). http://eric.domain.com/iOS_Log/logger.php: ? $myFile = yabba.txt; $fh = fopen($myFile,'a') or die(can't open file); $query = $_GET[string]; $stringData = $query.\n; fwrite($fh,$stringData); fclose($fh); ? I am simply trying to send

Re: Question about sending to PHP from Obj-C

2011-08-04 Thread Joe Wollard
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html%23//apple_ref/occ/instm/NSString/writeToURL:atomically:encoding:error: I'd guess that you could create an NSURL object with the full GET string, then write an empty

Re: Question about sending to PHP from Obj-C

2011-08-04 Thread Keary Suska
On Aug 4, 2011, at 7:52 AM, Eric E. Dolecki wrote: I have a little script sitting locally on my Mac (webserver). http://eric.domain.com/iOS_Log/logger.php: ? $myFile = yabba.txt; $fh = fopen($myFile,'a') or die(can't open file); $query = $_GET[string]; $stringData = $query.\n;