Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help making a \"readme.txt\" file for the code below. I will attach the i

ID: 3915116 • Letter: I

Question

I need help making a "readme.txt" file for the code below. I will attach the instructions for the code also.

Please ensure that you create readme.txt providing me the instructions on how to deploy it.

INSTRUCTIONS:

Provide three widgets on this "Sifter.php" as follows

[1] First Text Area is the input text where users will copy and paste the text

[2] Below the "input" text area, add a button called "Sift".

[3] Hitting the "Sift" button will drop all vowels in the input and shows only the base consonants in the output box.

If the input contains one line, then the output contains one line.
if the input contains multiple lines, then the output contains multiple lines.

CODE WE NEED THE README.TXT FILE FOR:

<!DOCTYPE html>
<html>
<head>

<style>

#logo{
   height:200px;
   width: 200px;
}
#button1 {

    border: none;
    background: white;

}
a.a1:hover {
    color: brown;
    background: white ;
}
a.a1 {
    color: black;
    text-decoration: none;
   word-spacing: 10px;

}


</style>
</head>

<body>
<!-- Here we add the logo to the site -->


<header>
   <div id="logoDivision">
       <img id="logo" src="images.jpg"> <!--Set the height of the image properly as per your design-->
   </div>
   <div id="button1"><a class="a1"    href="splitter.php"><h3>Splitter</h3></a></div>
   <div id="button1"><a class="a1" href="sorter.php"><h3>Sorter</h3></a></div>
   <div id="button1"><a class="a1" href="scrambler.php"><h3>Scrambler</h3></a></div>
   <div id="button1"><a class="a1" href="summarizer.php"><h3>Summarizer</h3></a></div>
   <div id="button1"><a class="a1" href="starter.php"><h3>Starter</h3></a></div>
<div id="button1"><a class="a1" href="Shaper.php"><h3>Shaper</h3></a></div>
<div id="button1"><a class="a1" href="Slicer.php"><h3>Slicer</h3></a></div>
<div id="button1"><a class="a1" href="Shuffler.php"><h3>Shuffler</h3></a></div>
<div id="button1"><a class="a1" href="Seamer.php"><h3>Seamer</h3></a></div>
<div id="button1"><a class="a1" href="Substitutor.php"><h3>Substitutor</h3></a></div>
   <div id="button1"><a class="a1" href="Sifter.php"><h3>Sifter</h3></a></div>


   <?php

   $output = "";

   if(isset($_POST['input']) && isset($_POST['sift_btn'])){

   $input = $_POST['input'];

   for($i=0; $i<strlen($input); $i++){

   if(strtolower($input[$i])!='a' && strtolower($input[$i])!='e' && strtolower($input[$i])!='i' && strtolower($input[$i])!='o' && strtolower($input[$i])!='u')
   $output .= $input[$i];

   }

   }

   ?>

   <form action="" method="POST">

   <div>

   <b>Input</b>

   <textarea name="input" rows=3 cols=100></textarea>

   </div>

   <div>

   <input type="submit" name="sift_btn" value="Sift"/>

   </div>

   </form>

   <div>

   <h3>Output:</h3>

   <div><?=nl2br($output);?></div>

   </div>

Explanation / Answer

Well if I seem to understand your question correctly you need help in how to deploy the above code in your machine or someelse machine so that they can utilize it.

Here the steps:

1) First of all you need a server up and running if you planning to run locally. The best servers in which PHp runs fine are WAMP or XAMPP.

2) Install any one of them on your local machine and start the Apache server.

3) Then go to the WAMP/XAMPP directory , go to www folder and place your HTML and PHP file there.

4) Now you can either have HTMl file with Text area and button as above but in form tag you also need to add action attribute stating while PHP file to post to. Note correctly give the filename with relative path.

5) Or you can paste all the code in one PHP file with HTML code displayed within echo tags.

6) I assume you are aware of PHP and I will not go into details as the scope of the question is to how to run the code.

7) Now once the server is ready and files have been placed in www folder. Visit your browser and hit the URL: http://www.your-domain.com/filename.html

8) In this scenario the domain-name would be localhost.

9) Your code should be up and running now.

Let me know incase of any concerns

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote