Directly writing PHP Script in Arduino ide

Hi is there a method to write PHP script in Adruino ide via some intermidiate as i am using a Esp8266 Wifi module.Without using using GET method.

You have to give a better description. Although not useful, you can type something like below in the IDE

<?php echo '<p>Hello World</p>'; ?>

:stuck_out_tongue: :stuck_out_tongue:

I second that, not useful at all.

Unless you can fit a PHP interpreter on your ESP8266, then you'll simply be pushing raw PHP code to your browser/whatever is receiving the data.

If you are using your ESP8266 to talk to a server (give it code to run in its PHP interpreter) then you are implementing an extremely dangerous security flaw.

Hi i am trying to find method for writing java on arduino ide. i googled it and found JArduino. I have saved it in my arduino library location. now in my examples i can see JArduino Example and Firmware. But when i compile it it gives Error.

"JArduinoFirmware.pde:18:22: fatal error: JArduino.h: No such file or directory
compilation terminated.
Error compiling."

What is problem i am not able to understand. Please help i am scratching my head from 2 days on it :slight_smile:

How many more copies of the this question am I going to have to delete?

Stop cross-posting

sachin13:
What is problem i am not able to understand.

An Arduino is programmed using C/C++

It cannot run Java or PHP programs.

...R

Actually i want to send and sms and email alert from esp8266 wifi module i have use email client code that is given in arduino page but it is giving me errors and for sms ifttt is not working in india so i was looking for directly writing php or javascript to send email.but as it is not possinle in arduino ide.
Is there a simple code to send email and sms from esp8266 using arduino ide.
Any Sample program. :slight_smile:

i have use email client code that is given in arduino page

Post a link, ppleaae

but it is giving me errors

Please post your code and the error messages that you get.

BTW
javascript is not the same as java, so I don't understand why you're trying to use JArduino.

Many years of web development experience tells me NO, NO, and NO.
Not possible to execute PHP or Java on Arduino of any form unless you have Yun.
It is NOT possible to send emails or SMS directly from Arduino.

The method to send email or SMS will require an existing mail server with recode of the ESP unit.
Here is another method of doing it in much easier way. Using this method will require an existing web server hosting. There you can write a PHP script that will receive information from Arduino and then send email or SMS based on information received from the Arduino.

phpmail.php?sendto=youremail@server.com&sender=myemail@server2.com&message=.........

Note that this thread is nearly 3 years old.

It's an old thread but it is there for people to search for solutions even years down the road yet a proposed solution to this specific topic has not been properly presented.

yet a proposed solution to this specific topic has not been properly presented.

You are the ONLY one that won't accept the "You can't do that" answer.

PHP scripts can NOT run on the Arduino, so using the Arduino IDE to create/edit them makes no sense. Get over it.