Loading...
Pages: [1]   Go Down
Author Topic: Control Ethernet Shield with PHP?  (Read 176 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to control my shield with a php webpage.  I can't figure out how people are sending commands to the shield with php.  The problems is that I call my shield and command for example 192.168.1.5/?doorup but I don't want to go to that page I just want to send that command.  How are people doing this?
Logged

0
Offline Offline
Tesla Member
***
Karma: 51
Posts: 6573
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, the old school way of not up dating the current web page was to send the requesting browser a status: 204 telling it to not to try to update the page, or send the server response to a hidden iframe in the web page, or a combination of both. Today there seems to be other ways involving java applets, javascript, ajax, and other methods. 
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

Vejen, Denmark
Offline Offline
Edison Member
*
Karma: 7
Posts: 1177
RAWR! ^,..,^
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I guess what you want is to not have direct access from outside (the internet) to the inside (your local network)?

To send a command through php you use curl to call the arduino instead, and the visitors on the page then calls that php page. Same way I do it for my home automation system.
Logged

captain-slow.dk | non contagious!

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

I don't want to go to that page I just want to send that command.  How are people doing this?
http://api.jquery.com/jQuery.get/
Logged

Pages: [1]   Go Up
Print
 
Jump to: