I've written an upload script, and I need it to check if the filename it's uploading already exists on the server every time somebody uploads something. I have two methods of checking, one using PHP's file_exists, the other is grabbing the table from MySQL. The question is, which method is more efficient, or less server-extensive?