I would like to write a program like this, but WordPress is PHP, I blog is ASP, had to write code with ASP. After some toss test, finally let my dream become reality.
The process of the program is this, when someone comments will be posted to the comments on my phone, is through a website API interface to achieve the message sent, in fact, is flying the API. Flying a letter is not to send their own information to themselves? The principle is actually very simple.
Reminder: Your mobile phone must be opened flying letter function.
Example:
====a.asp====
Copy Code code as follows:
<form name= "Form2" action= "ok.asp?id=1 method=" POST ">
<textarea id= "Content" style= "width:60%; height:70px "Name=" Liuyan "rows=" 4 "cols=" ></textarea>
<input type= "Submit" value= "release" Name= "GG" >
</FORM>
This is a form to submit a message
====ok. asp====
Copy Code code as follows:
Dim c
C=request.form ("Liuyan")
Set Xmlhttp=server.createobject ("Microsoft.XMLHTTP")
Xmlhttp.open "Get", "Https://sms.api.bz/fetion.php?username= your mobile number &password= flying letter password &sendto= your mobile number &message = "&c&", False
Xmlhttp.send ()
Receive page
---------End-----
Well, the code is basically like this, so simple ah. But I was tested for one hours before the test was successful. In fact, this API can do many things, this is just a small application, a larger application can do a if the server is online, if the server or Web site can not access to send a message to remind, haha. Yes, like a Web sitter's function.
Red font is the core code, about the jump page code I used a few are not, jump or fail to jump to the full screen of that page, which is I do not want to see. In the end I used a piece of code I used before, I think it is not, I can not imagine a put up on the OK.
If you see this article please make a comment, I see if it is really stable, but do not send so much oh, my phone memory is not much, full of hanging.