Created
June 25, 2010 08:13
-
-
Save mchelen/452589 to your computer and use it in GitHub Desktop.
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
preg_match('/[0-9]+/', $_GET["pmcid"],$matches); | |
$pmc = $matches[0]; | |
// generate list files command | |
$cmd = "ls $filepath/*/*-$pmc.nxml"; | |
// run command and save results (trim whitespace) | |
$output = trim(shell_exec($cmd)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment