The following wildcard characters can be used in the pattern string.
Wildcard character Meaning
* (asterisk) Matches zero or more characters.
? (question mark) Matches a single character.
DOS_DOT Matches either a period or zero characters beyond the name string.
DOS_QM Matches any single character or, upon encountering a period or end of name string, advances the expression to the end of the set of contiguous DOS_QMs.
DOS_STAR Matches zero or more characters until encountering and matching the final . in the name.
1 2 3 4 5 6
// The following constants provide addition meta characters to fully // support the more obscure aspects of DOS wild card processing.
php > echo file_get_contents(">>>.txt"); 123.txt php > echo file_get_contents(">>>>txt"); PHP Warning: file_get_contents(>>>>txt): failed to open stream: No such file or directory in php shell code on line 1
Warning: file_get_contents(>>>>txt): failed to open stream: No such file or directory in php shell code on line 1 php > echo file_get_contents(">>>.txt>>"); 123.txt php > echo file_get_contents(">>>>>>>>"); PHP Warning: file_get_contents(>>>>>>>>): failed to open stream: Permission denied in php shell code on line 1
Warning: file_get_contents(>>>>>>>>): failed to open stream: Permission denied in php shell code on line 1
php > echo file_get_contents("*aaa"); PHP Warning: file_get_contents(*aaa): failed to open stream: No error in php shell code on line 1
Warning: file_get_contents(*aaa): failed to open stream: No error in php shell code on line 1 php > echo file_get_contents("999?txt.php.abc.aaa"); PHP Warning: file_get_contents(999?txt.php.abc.aaa): failed to open stream: No error in php shell code on line 1
Warning: file_get_contents(999?txt.php.abc.aaa): failed to open stream: No error in php shell code on line 1 php > echo file_get_contents("999.txt.php.abc.aaa"); 999.txt.php.abc.aaa