*********YOUR POST HAS BEEN EDITED PLEASE USE THE CORRECT TAGS FOR PHP********
As you are very cleaver how do you get $name2 to go into the function
its sends it accross like this
send.php?file=11&file2=db11
PHP Code:
<?php
$name2 = $_GET['file2'];
function scandir($dirstr) {
passthru("/usr/bin/count.sh $name2 2>&1 ");
echo "</pre>\n";
}
scandir("$fullpath");
?>
Thanks for the help