what im trying to accomplish is opening a .php filetype for reading and writing.
foreach (glob("*.php", GLOB_NOSORT )as $filename) // match wildcard file type .php
{
$open=fopen($filename, 'rb'); // open the files
$fileget=file_get_contents($filename); // get the contents of the file in a string
print_r($fileget); // print readable contents
}
this will not read a .php file type permissions set to 777 i see no need to stream the context since each match is a file.
also i should mention i can open .txt file all day but as soon as a .php or .html or anything not .txt