Go Down

Topic: Arduino php web server (Read 3740 times) previous topic - next topic

J.R.

I am wondering if it is possible to make a self contained Arduino php web server that has the ability to send an email or an SMS message to a cellphone. Any ideas, suggestions, code, anything really would be immensely helpful.

cr0sh

Are you seriously asking whether the Arduino can serve PHP-generated content? That is, whether the Arduino can interpret PHP? Please say you're not...

You can get an Arduino to output HTML, you can probably also send an email, as well as SMS (try googling) - but PHP is well outside the capability of an Arduino...
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Nick Gammon

I think I saw an article about something along those lines recently. But it was a 2-step process. First the Arduino detects something, and then using the existing Ethernet shields, and the ability to make a simple web client, sends a request to another web server running on a PC (or Mac, Linux, whatever).

So the Arduino might send a simple message like:

Code: [Select]
http://10.0.0.100/myscript.php?msg=cat_has_escaped



Then the PC-based device uses its gigabytes of memory and processing power to contact your cellphone.

Let's put it another way. On the PHP site I see that PHP 5.2.17 (tar.gz) is 11.5 Mb in size. And that's compressed. So there is no way you are going to fit PHP into 32 Kb of program memory.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

J.R.

A simple no would have sufficed.


Are you seriously asking whether the Arduino can serve PHP-generated content? That is, whether the Arduino can interpret PHP? Please say you're not...

You can get an Arduino to output HTML, you can probably also send an email, as well as SMS (try googling) - but PHP is well outside the capability of an Arduino...

zoomkat

Quote
A simple no would have sufficed.


But then you would still be totally clueless as to why not.
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.

J.R.

I meant a no and then an explanation.


Quote
A simple no would have sufficed.


But then you would still be totally clueless as to why not.

Go Up