Created
April 28, 2011 19:12
-
-
Save RadoRado/947073 to your computer and use it in GitHub Desktop.
PHP 11 Course, Homework 5 helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $fileName = $_POST["fileName"]; | |
| // here, search for the file recursively in all folders down from this level | |
| // and print the file path if found | |
| // otherwise, print OMG A BEAR! FILE NOT FOUND. | |
| ?> | |
| <html> | |
| <head> | |
| <title>File Search</title> | |
| </head> | |
| <body> | |
| <form action="fileSearchForm.php" method="POST"> | |
| <input type="text" name="fileName" /> | |
| <br /> | |
| <input type="submit" value="Search" /> | |
| </form> | |
| </body> | |
| <html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment