Category Archives: PHP

SQL RESTian example in PHP

Here’s a PHP script that reads and writes from a SQL database. This example assumes you’ve got a SQL database account on the same machine that the script is running on. It also assumes you’re using a .htaccess file that … Continue reading

Posted in code, PHP | Tagged | Leave a comment

Mr. Data Converter

Mr. Data Converter is your friend. It’s a conversion tool to take tab or comma delimited data and convert it to a variety of formats: XML, JSON, ActionScript, PHP, you name it. Mighty handy if you have to take stuff … Continue reading

Posted in code, Flash/ActionScript, java, PHP, Processing | Leave a comment

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

Posted in arduino/wiring, PHP, Processing | Tagged , , | Leave a comment

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.

Posted in PHP | Leave a comment

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:

Posted in PHP | Tagged , , | Leave a comment

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

Posted in arduino/wiring, PHP, Processing | Tagged , , , | Leave a comment

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

Posted in arduino/wiring, PHP, Processing | Tagged , , , | 1 Comment

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

Posted in arduino/wiring, Lantronix, PHP | Tagged , , , , , , , | 2 Comments

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

Posted in PHP | Comments Off on Browser Sniffer

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

Posted in arduino/wiring, PHP | Comments Off on Phone calls to a Microcontroller, though Asterisk