add fopen support for index.php