• 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
Question about sending to PHP from Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Question about sending to PHP from Obj-C
      • From: Keary Suska <email@hidden>
    • Re: Question about sending to PHP from Obj-C
      • From: Joe Wollard <email@hidden>
  • Prev by Date: Re: CFStringCreateWithBytes and Endianness
  • Next by Date: Re: Telling Auto Save, "No, I'm busy now"
  • Previous by thread: Re: CFStringCreateWithBytes and Endianness
  • Next by thread: Re: Question about sending to PHP from Obj-C
  • Index(es):
    • Date
    • Thread