hi, i just opened the source on a website. i'm not sure that's there's anything great there but right after i did, a bunch of code went bad. go figure.
so, like, at http://www.uac.pdx.edu/confirm.php?type=r
i'm trying to echo some output if $error isset. it works if i print $error right after it's assigned but not later. or way before in the html.
do i need to assign global variables in any particular place in a script?
also, i want my file list to *not print out index.php (please don't delete it either 😉
and my solution was the !strpos below.
question: with execution operators, how do i do this?
i'm trying to say, if the open dir has files ending in php and not containing index, print em.
$files = opendir "/home/uac/public_html/routes/");
while (($current = readdir($files)) !== false)
if (strpos($current, "php") && !strpos($current, "index")!= FALSE){
print "\n\t\t<OPTION>$current ";
}
}
closedir($files);
any help would sure be appreciated!!