Loading...
Pages: [1]   Go Down
Author Topic: Arduino php web server  (Read 2309 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 27
Posts: 5078
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 218
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

0
Online Online
Tesla Member
***
Karma: 50
Posts: 6538
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
A simple no would have sufficed.

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

Why I like my 2005 rio yellow Honda S2000 with the top down, and more!
GOOGLE ADVANCED FORUM SEARCH BELOW!  
Go to:  http://www.google.com/advanced_search?hl=en
put in key search words,
use site or domain:  http://arduino.cc/forum
or in a google search box put key words site:http://arduino.cc/forum

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Print
 
Jump to: