Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By TheWaldorfer
#46600 Put this in a *.php file and copy the file to the htdocs subfolder (xxxx/htdocs/esp/esp.php):

Code: Select all<?php
$name=$_GET["Name"];
$age=$_GET["Age"];

print $name . " is " . $age . " years old...";
?>


In the ESP's editor call it with:

Code: Select allprint wget("192.168.178.23/esp/test.php?Name=Peter&Age=55")


The output is:

Code: Select allPeter is 55 years old...
Done...


Change the ip address to your needs. You can add all functions php offers inluding MySQL.
User avatar
By Mmiscool
#46889 This kind of script could be easily used to capture telemetry information from sensors and report them to your server.

I like the idea of using my own server rather than some one else's as you keep absolute control of your data and don't have to relight on a third party.