Added fopen support

Added Fopen support, fopen is used if cURL is not enabled. If both are not enabled then it will just die() and output an error message.