Skip to content

Instantly share code, notes, and snippets.

@RadoRado
Created April 28, 2011 19:12
Show Gist options
  • Select an option

  • Save RadoRado/947073 to your computer and use it in GitHub Desktop.

Select an option

Save RadoRado/947073 to your computer and use it in GitHub Desktop.
PHP 11 Course, Homework 5 helper
<?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