<?php print_r(stream_get_wrappers());?>
The above example will output something similar to:
Array ( [0] => php [1] => file [2] => http [3] => ftp [4] => compress.bzip2 [5] => compress.zlib )
<?php// check for the existence of the bzip2 stream wrapperif (in_array('compress.bzip2', stream_get_wrappers())) { echo 'compress.bzip2:// support enabled.'; } else { echo 'compress.bzip2:// support not enabled.'; }?>