あなたが
を動作するはず同じファイルに新しい行を書きたい場合はその後phpscript.phpこの
<?php
//first line just checks to see if ID is set and if so it'll run the script. This stops the script from running if ID isn't set and someone just randomly comes to the webpage
if (isset($_GET['ID'])) {
$id = $_GET['ID'] . "\n"; //I added \n to denote a new line so when you write to this file it'll just append the ID's there
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
fwrite($myfile, $id); //the second parameter is whatever you want to write to that file
fclose($myfile);
}
のようになります。
http://somdomain.com/path/phpscript.php?ID=5
のようなArduinoの呼び出しにページを作ります
は、このすべては、私は両方の答えのハイブリッドで終わった – user1213320