A few days ago, I saw that several wordpresses have the function of automatically sending text message reminders for new comments. I think it is good. It is especially helpful for administrators who are not often online. If someone sends illegal information, they will know it immediately and send the message. It's free. I really want to write such a program myself, but WordPress is PHP and my blog is ASP, so I have to use ASP to write the code. After a lot of testing, my dream finally became a reality.
The process of the program is like this. When someone leaves a comment, the comment will be sent to my mobile phone. The information is sent through the API interface of a website, which is actually the API of Fetion. Can't Fetion send messages to myself? The principle is actually very simple.
Reminder: Your mobile phone must have Fetion enabled.
example:
====A.ASP====
Copy the 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=75></textarea>
<INPUT type=submit value=release name=gg>
</FORM>
This is a form, you want to submit a message
====OK.ASP====
Copy the 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=Fetion password&sendto=your mobile number&message=&c&,false
xmlhttp.send()
receive page
---------Finish-----
Well, the code is basically like this, so simple. But it took me more than an hour to test successfully. In fact, this API can do many things. It is just a small application. A larger application can do things such as whether the server is online, and send a message reminder if the server or website cannot be accessed, haha. Not bad, it functions like a website nanny.
The red font is the core code. I have used several codes to jump to the page, but none of them work. The jump either fails or jumps to that page and displays it in full screen. This is what I don't want to see. In the end, I used a piece of code that I had used before. I thought it wouldn't work, but I didn't expect that it would work as soon as I put it in.
If you see this article, please leave a comment and I'll see if it's really stable. But don't post so much. I don't have much memory on my phone and it will hang when it's full.