Question about sending to PHP from Obj-C
Question about sending to PHP from Obj-C
- Subject: Question about sending to PHP from Obj-C
- From: "Eric E. Dolecki" <email@hidden>
- Date: Thu, 04 Aug 2011 09:52:11 -0400
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 the PHP a small string from my app on a device.
I've seen examples of POST everywhere, but looking for GET.
Of course if I do *http://eric.domain.com/iOS_Log/logger.php?string=Foo* in
a browser it works fine.
_______________________________________________
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