Pages: [1]   Go Down
Author Topic: Any good book for learning PHP  (Read 643 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
discovering the fun in electronics
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I hope this is the right place for this question. I am planning to do a home automation project in which I can login into a webpage and control the lights, TV, fans, etc. in my house and get feed from a camera by communicating with the server computer through the serial port connected to arduino or maybe directly connected to arduino through ethernet shield(if that is possible).

 It is just the planning phase and I am not even very sure about the feasibility.
Can the arduino alone act as a web server taking serial commands from the client without any intermediate computer acting as server?
Can the arduino handle camera feed if used directly instead of a computer acting as server?



From what I have seen in the forum and other places, PHP seems to be apt for this purpose. I will have to learn PHP as I have not really done any web programming before. Can you suggest any books that you think are good?

And any suggestions regarding whether any other language should be used instead?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 615
Posts: 49388
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can the arduino alone act as a web server taking serial commands from the client without any intermediate computer acting as server?
Yes, it can. Works great.

Quote
Can the arduino handle camera feed if used directly instead of a computer acting as server?
"Handle" is such a vague term. The Arduino as a web server can not stream video data, It is far to slow for that. It can serve up a page that includes a frame where the web cam data can be shown, if the camera in question is a web cam with it's own web server setup.

Quote
From what I have seen in the forum and other places, PHP seems to be apt for this purpose. I will have to learn PHP as I have not really done any web programming before. Can you suggest any books that you think are good?
PHP is easy to learn. It is based on C. php.net has a link to the documentation. There are tons of examples provided there, and in other sites on the web.

This is all academic, though, as the web server that you are trying to program is the Arduino, and it can not do PHP processing.

Quote
And any suggestions regarding whether any other language should be used instead?
For what? Basic html is all you need to understand, because that is all the Arduino can serve up.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
discovering the fun in electronics
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your guidance smiley I hope I will be able to do it now.
Logged

Pages: [1]   Go Up
Jump to: