File Directory Php

$fp = fopen( "binary_file", "wb" );
and read them like this:
$fp = fopen( "binary_file", "rb" );