Comments (5)
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.
Nice idea bro, thanks..let keep moving we can archive these tasks.
from team-fury-1.
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.
Note: a good example has been done in #22
If you are happy with that, you can close this Issue
from team-fury-1.
Thank you guys for your contributions
from team-fury-1.
Related Issues (20)
- Email Regex in Output HOT 2
- json data display format HOT 4
- Remove email from regex HOT 6
- All Python Scripts not working HOT 1
- Update link to the website HOT 2
- Possible improvements HOT 2
- Creating Server to run script and also to watchout for new commits HOT 1
- Improve Documentation HOT 1
- Add Gitpod for Live Review
- Merging PRs of Scripts Team HOT 14
- Python Scripts not working on my xampp. HOT 5
- israel HOT 1
- Implement frontend ui HOT 2
- Live server edit HOT 5
- JSON output fails validation
- Clean repo files
- Ideas for the next tasks HOT 4
- Ideas for Designers HOT 1
- Ideas for Frontend HOT 1
- Ideas for backend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from team-fury-1.