Announcement

Collapse
No announcement yet.

Uptime Monitoring

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • nicktan147
    replied
    Sorry, i forgotten the output of the php.

    The output of the php should be like this

    "Hello their name are:Junior,Amaya,Jason"

    Leave a comment:


  • nicktan147
    started a topic Uptime Monitoring

    Uptime Monitoring

    I'm trying to make a simple website monitoring, I just newly used this autoplay media studio not sure if this actually lack of few functions.

    Here is my code.

    Code:
    Button.SetVisible("Button1", false);
    Image.SetVisible("Image1", true);
    
    y = 1;
    
    for x=1, 5 do
    
    connection_msg = {};
    links_to_test = {};
    
    links_to_test[1]="mska1.com";
    links_to_test[2]="mska2.com";
    links_to_test[3]="mska3.com";
    links_to_test[4]="mska4.com";
    links_to_test[5]="mska5.com";
    
    connectionTest = HTTP.TestConnection("http://www."..links_to_test[y], 5, 80, nil, nil);
    if (connectionTest == false) then
        connection_msg[y] = links_to_test[y].."- ERROR";
    else
    	connection_msg[y] = links_to_test[y].."- SUCCESS";
    end
    y = y + 1;
    Input.SetText("Input1", connection_msg[y]);
    end
    
    
    Image.SetVisible("Image1", false);
    Button.SetVisible("Button1", true);
    Like in PHP, if I would like to merge previous text with new text. I can't seems to find such function in Autoplay Media Studio. The above code is not working properly to show all because of the function is missing

    Here is what I meant in PHP:-

    PHP Code:
    // Assuming I have few variables.

    $text "Hello their name are:";
      
    $array = ('Junior''Amaya''Jason');

    for (
    $x 0$x 3$x++;) {
    $text .= $array[$x];
    }

    echo 
    $text
Working...
X