Giter VIP home page Giter VIP logo

Comments (5)

ruffcoins avatar ruffcoins commented on August 13, 2024 6

You could make your comment readable this way.

<?php
    $names = array();
    $key_words = "Hello World, this is with HNGi7 ID using language for stage 2 task";

    foreach(glob("scripts/.js") as $filename){
        $output = exec("node $filename");
        echo $output;
        echo $key_words;

        if(preg_match('/{$key_words}/i', $output)){
            echo "pass";
            echo "";
        }else{
            echo "fail";
            echo "";
        }
        array_push($names, $filename);
    }

    foreach(glob("scripts/.php") as $filename){
        $output = shell_exec("node $filename");
        echo($output);
        echo "";
        array_push($names, $filename);
    }

    foreach(glob("scripts/*.py") as $filename){
        $output = shell_exec("./$filename");
        array_push($names, $filename);
    }

    echo "All files in the scripts directory are: ";

    foreach($names as $name){
        print_r($name);
        echo "";
    }
?>

from team-fury-1.

Emmyola avatar Emmyola commented on August 13, 2024 1

Nice idea bro, thanks..let keep moving we can archive these tasks.

from team-fury-1.

piouson avatar piouson commented on August 13, 2024

Hi @Megxos thank you for contributing!

To make your questions clear for everyone, remove all other parts of the code and only enter the line/snippet you need us to focus on..

Have you seen my regex example in #1?

from team-fury-1.

piouson avatar piouson commented on August 13, 2024

Note: a good example has been done in #22
If you are happy with that, you can close this Issue

from team-fury-1.

codemicah avatar codemicah commented on August 13, 2024

Thank you guys for your contributions

from team-fury-1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.