SRL Archive - OSR Help

how do I send message to web site/email


f1fanatic

2012-05-03 17:17:58

I want to send a message to my free website or email so I can check the bot is working when I am away can someone show me how to do this, or give me an example. I have tried to use some of the tuts on version checking for scripts but always get stuck. I am using webs.com please help thankyou!

Abu

2012-05-03 17:20:16

No need to offer to pay for this. In fact, remove that from your post or else you're gonna a whole load of members complaining about it :p

On Topic: I'll look into this for you, but don't get too happy as I've never done this myself :p

Frement

2012-05-03 17:41:49

PostHTTPPageEx

shstiger2009

2012-05-03 17:59:16

From: Frement
PostHTTPPageEx


Can you elaborate on this please? That'd be awesome! Thanks :D

f1fanatic

2012-05-03 18:02:05

From: abu_jwka
No need to offer to pay for this. In fact, remove that from your post or else you're gonna a whole load of members complaining about it :p

On Topic: I'll look into this for you, but don't get too happy as I've never done this myself :p


thank-you! I updated my post :)

From: Frement
PostHTTPPageEx


could you elaborate a little by any chance? thanks

Abu

2012-05-03 18:02:44

function PostHTTPPage(Client: Integer;const Url,PostData: string): string;

This posts the data (PostData) on the web page (Url) of the client (Client).

Frement

2012-05-03 18:13:01

Result := PostHTTPPage(1, 'http://mysite.com/page.php', 'data1=somedata1&data2=somedata2');

[PHP]<?php

$data1 = $_POST["data1"];
$data2 = $_POST["data"];

echo $data1."<br />".$data2;

?>[/PHP]

EDIT: Now Result variable in Simba will print: 'somedata1<br />somedata2'

You need your PHP file to process the information how you want.

punkd

2012-05-04 03:56:24

Why not just use logmein software, you can not only check from your iPhone or any computer with Internet but also restart your script and control your entire pc.

shstiger2009

2012-05-04 05:09:23

From: punkd
Why not just use logmein software, you can not only check from your iPhone or any computer with Internet but also restart your script and control your entire pc.


But there's really no point of checking over and over and over and it can be time consuming. If you were to get an email notification, say, when you got a random, then it would be worth logging in and dealing with it then. The way I'd do this is just set up the RandomTool with a long wait, or just have the script Terminate when it found a random.

This actually would be sooooo useful. I wish I could get it working to send me an email.

ssshhhaaa

2012-05-04 06:20:30

From: punkd
Why not just use logmein software, you can not only check from your iPhone or any computer with Internet but also restart your script and control your entire pc.


How does this software work, and which product is it?

punkd

2012-05-04 12:15:03

From: shstiger2009
But there's really no point of checking over and over and over and it can be time consuming. If you were to get an email notification, say, when you got a random, then it would be worth logging in and dealing with it then. The way I'd do this is just set up the RandomTool with a long wait, or just have the script Terminate when it found a random.

This actually would be sooooo useful. I wish I could get it working to send me an email.


But when your away, you really have no way of fixing the random itself. Even if you do get an email

From: ssshhhaaa
How does this software work, and which product is it?


Logmein, allows you to remotely control your pc or Mac from virtually anywhere with Internet.

ssshhhaaa

2012-05-04 13:00:12

From: punkd
But when your away, you really have no way of fixing the random itself. Even if you do get an email


Logmein, allows you to remotely control your pc or Mac from virtually anywhere with Internet.
Is it better than Team viewer (does team viewer have a online viewing open too?)

shstiger2009

2012-05-04 13:40:35

From: punkd
But when your away, you really have no way of fixing the random itself. Even if you do get an email


Yeah I would, I'd just log in from my laptop which I pretty much have access to at all times of the day. I use a desktop at my apartment.

ssshhhaaa

2012-05-09 01:59:48

I tried logMeIn but it doesn't seem to work with portable browsers (in my memory stick) it just crashes when the page comes up where its supposed to connect.

Daniel

2012-05-09 09:07:39

You would want to learn how to code in a web language. PHP would probably be the most ideal for your situation. You would want to learn how to read POSTDATA ($_POST), how to store information in a text file (read/write), and how to send mail using PHP. :) Then you're all set.

Not to say it is hard, it is actually an incredibly easy thing to do :)

xdarkshadowx

2012-05-10 18:49:21

How would you run the PhP code though? would it be a seperate program that you executed?

Main

2012-05-10 19:01:03

Yeah, could any one just give a sample php script (just couple of line) to show how post http works?
EDIT: Thanks frement:)