Category Archives: PHP
Blog Housekeeping
I’m making some changes to this blog. I’ve been unhappy about the fact that all the code is static, not the code I use every day. Instead, I want a nice code repository, so whatever I write on my machine … Continue reading
Simple Client URL example in PHP
Here’s a simple example of using the cURL program through PHP’s client URL library. It’s a really powerful way to use HTTP, because you can set just about every HTTP option using the library.
Mail form in PHP
Here’s a simple HTML/PHP form that takes data from the form and sends it in mail via HTTP POST. Save it as formToMe.php:
RFID to Web Interface
This tutorial introduces a Processing interface sketch provides a GUI for the command-line interface written into the Arduino RFID example. You should read that tutorial first. The sketch shown here also allows you to upload tags it reads to O’Reilly’s … Continue reading
Arduino-based RFID reader
This tutorial shows how to make an Arduino-based RFID reader that reads Mifare tags and stores them in EEPROM. It is a modification of Alex Zivanovic‘s code on Tinker.it. Thanks to Alex and Massimo Banzi for the reference. Once you’ve … Continue reading
Sensorbase datalogger
Sensorbase.org is an open data repository run by the Center for Embedded Networked Sensing at UCLA. It’s a database of sensor databases. You can upload datasets to it, and you can browse other datasets as well. If you’ve never set … Continue reading
Browser Sniffer
Here’s a short PHP script that gathers info about the browser and the IP address of the client and returns it via email. I used it to gather data on cell phone browsers, and got the results seen at the bottom over the course of a day. Continue reading
Phone calls to a Microcontroller, though Asterisk
Kate Hartman has written a set of PHP examples that allow you to connect to a microcontroller via a phone call using Asterisk. Thanks to Kate for the link.
Continue reading
Web Scraping using a Microcontroller
This program connects a Wiring or Arduino module to the internet through a Lantronix serial-to-ethernet converter (Xport, WiPort, or Micro)…. When the web page comes back, it parses the page for < and > symbols, and takes the string between them. Continue reading
Network Data Logging Suite
This suite of programs takes data from a sensor and saves it to a text file on a network. Each sensor reading is time stamped. The suite illustrates the basic principles involved in sending sensor data to a networked file or database.
Continue reading