use curl before "file_get_contents" to check mod_rewrite in case of the server doesnt support file_get_contents through url