Pages: [1]   Go Down
Author Topic: Arduino php web server  (Read 3237 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: 36
Posts: 5519
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

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 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
Offline Offline
Tesla Member
***
Karma: 114
Posts: 8922
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

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

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
Jump to: